I got a simple problem
#4

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;
}
Reply


Messages In This Thread
I got a simple problem - by fuem1907 - 07.07.2013, 17:19
Re: I got a simple problem - by Red_Dragon. - 07.07.2013, 17:33
Re: I got a simple problem - by josephtky - 07.07.2013, 18:11
Re: I got a simple problem - by [MG]Dimi - 07.07.2013, 21:58

Forum Jump:


Users browsing this thread: 3 Guest(s)