10.12.2009, 13:28
better version of code above:
Ontop:
OnPlayerSpawn:
Then the command:
Ontop:
pawn Код:
new
g_moneyCP;
pawn Код:
public OnPlayerSpawn(playerid)
{
g_moneyCP = SetPlayerCheckpoint( playerid, x, y, z, size ); //I recommend size from 2.0-7.0
return true;
}
pawn Код:
if( !strcmp( cmdtext, "/robatm", true ) )
{
if( IsPlayerInCheckpoint( playerid ) == g_moneyCP )
return GivePlayerMoney( playerid, 1000 );
return false;
}