16.04.2010, 03:57
usa un array. algo asi:
espero que te sirva
pawn Код:
new Usado[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Usado[playerid] = 0;
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/micomando", true) == 0){
if(Usado[playerid] == 0){
//codigo del comando
return Usado[playerid]++;
}
else return SendClientMessage(playerid, color, "mensaje");
}
return 0;
}