07.07.2009, 21:30
This is an example script that I made:
Try to take a look at that.
pawn Код:
#include <a_samp>
enum PlayerInfo
{
checkpoints
}
new PlayerData[MAX_PLAYERS][PlayerInfo];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/test",true))
{
if(IsPlayerInCheckpoint(playerid))
{
PlayerData[playerid][checkpoints]++;
return 1;
}
SendClientMessageToAll(0xFFFFAAAA, "Test Successfull");
return 1;
}
return 0;
}