16.04.2010, 03:35
Como Hacer que un Cmd Se pueda utilizar una sola ves ?
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;
}
Originally Posted by the_chaoz
usa un array. algo asi:
pawn Код:
|
Originally Posted by the_chaoz
usa un array. algo asi:
pawn Код:
|
Originally Posted by Cesar_Biker
Quote:
|
Originally Posted by the_chaoz
Quote:
|