大大我不能把这sma转档,帮帮我转档和告诉我什么事转不到。
#include amxmodx
#include cstrike
#include hamsandwich
new Money[33]
public plugin_init()
{
register_plugin( Money Work-around, 1.0, Wrecked )
register_logevent( LogEventRoundEnd, 2, 1=Round_End )
RegisterHam( Ham_Spawn, player, HamSpawnPost, 1 )
}
public client_connect( id )
{
Money[id] = 0
}
public LogEventRoundEnd()
{
new iPlayers[32]
new iNum
get_players( iPlayers, iNum )
new id
for( new i = 0; i iNum; i++ )
{
id = iPlayers
if( is_user_connected( id ) )
{
Money[id] = cs_get_user_money( id )
}
}
}
public HamSpawnPost( id )
{
cs_set_user_money( id, Money[id] )
}