CMD:robpizza[+rep!!!]
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
there is some problem with barckets i think its really confusing use like this and try --
pawn Код:
CMD:robpizza(playerid,params[])
{

        if(gteam[playerid] == TEAM_CIV)return  SendClientMessage(playerid,COLOR_RED,"(Error): You must be civilian to use this command!");
       
                if(IsPlayerInRangeOfPoint(playerid, 2.0,373.825653,-117.270904,1001.499511))return ErrorMessages(playerid,4);
                   

                        if(alreadyrobbed[playerid] == 0)return SendClientMessage(playerid,COLOR_RED,"(Error): You have already robbed the shop!Try Later!");
                           
                                if(isrobbing[playerid] == 0)
                                    {
                                            isrobbing[playerid] = 1;
                                            new string[190],string2[160],gname[MAX_PLAYER_NAME], gmoney = random(6000);
                                            GetPlayerName(playerid,gname,sizeof(gname));
                                            alreadyrobbed[playerid] = 1;
                                            GivePlayerMoney(playerid,gmoney);
                                            pinfo[playerid][Money] = pinfo[playerid][Money]+gmoney;
                                            IncreasePlayerWantedLevel(playerid,4);
                                            SetTimerEx("PizzaRob",60000,false,"i",playerid);
                                            format(string2,sizeof(string2),"Succeed: You have robbed Pizza Stack Shop and earned %d from the robbery!!Cops will be around!",gmoney);
                                            SendClientMessage(playerid,COLOR_GREEN,string2);
                                            pinfo[playerid][TotalRobs]++;
                                            format(string,sizeof(string),"WARNING: %s player has robbed Pizza Stack and earned %d from the robbery!!Please respond immediately",gname,gmoney);
                                            SendCopMessage(string);
                                    }
                                   

          return 1;
}

public PizzaRob(playerid)
{
    alreadyrobbed[playerid] = 0;
    return 1;
}
So if the player is civilian it will return an error message to player that he needs to be civilian to use this command... ? its actually the same.. Hmm let me try otherwise
Reply


Messages In This Thread
CMD:robpizza[+rep!!!] - by vassilis - 02.04.2014, 13:42
Re: CMD:robpizza[+rep!!!] - by BroZeus - 02.04.2014, 13:56
Re: CMD:robpizza[+rep!!!] - by vassilis - 02.04.2014, 14:16
Re: CMD:robpizza[+rep!!!] - by iThePunisher - 02.04.2014, 14:20
Re: CMD:robpizza[+rep!!!] - by Bingo - 02.04.2014, 14:25
Re: CMD:robpizza[+rep!!!] - by vassilis - 02.04.2014, 14:35
Re: CMD:robpizza[+rep!!!] - by davve95 - 02.04.2014, 15:31
Re: CMD:robpizza[+rep!!!] - by vassilis - 02.04.2014, 15:46
Re: CMD:robpizza[+rep!!!] - by davve95 - 03.04.2014, 05:11

Forum Jump:


Users browsing this thread: 2 Guest(s)