01.02.2013, 16:30
Quote:
|
pawn Код:
|
pawn Код:
new
typedCommand[MAX_PLAYERS];
CMD:once(playerid, params[])
{
if(!typedCommand[playerid])
{
typedCommand[playerid] = 1;
// Whatever you want the command to do
}
else
{
// Error message saying that they already used it
}
return 1;
}
public OnPlayerConnect(playerid)
{
typedCommand[playerid] = 0; // Here we reset the variable so other players who join with same ID can use the command later
return 1;
}
// You can also save the variable in player's file


