Cp with command...
#5

better version of code above:

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

Reply


Messages In This Thread
Cp with command... - by TouR - 10.12.2009, 12:09
Re: Cp with command... - by Jeffry - 10.12.2009, 12:22
Re: Cp with command... - by Mikep. - 10.12.2009, 13:13
Re: Cp with command... - by DJDhan - 10.12.2009, 13:20
Re: Cp with command... - by LarzI - 10.12.2009, 13:28
Re: Cp with command... - by Correlli - 10.12.2009, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)