07.07.2013, 21:58
pawn Код:
#include <a_samp>
new bool:Gift[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Gift[playerid] = false;
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/gift",true))
{
if(Gift[playerid] == true) return SendClientMessage(playerid,0xFF0000FF,"You can't take another gift!");
Gift[playerid] = true;
//code to give gift goes here
return 1;
}
return 0;
}