Unknow CMD
#2

PHP код:
#define RED -1
#define ROB -1
#define INFO -1
new pRobbingP[MAX_PLAYERS];
new 
pizzaRobbed;
new 
robTimerP[MAX_PLAYERS];
new 
cp_Pizza;
CMD:robpizzaplayeridparams[ ] )
{
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing Idlewood Pizza" );
        
//if ( !IsPlayerInDynamicCP( playerid, cp_Pizza) ) return SendClientMessage( playerid, RED, "ERROR:{FFFFFF} You must be in the checkpoint at Idlewood Pizza to use this command!" );
        
if ( pizzaRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} Idlewood Pizza has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint!" );
        
pRobbingPplayerid ] = true;
        
pizzaRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at Idlewood Pizza!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +2);
        return 
true;

This is ma debug script and it works fine..
Check if you have placed all the required plugins. streamer etc
Reply


Messages In This Thread
Unknow CMD - by sas10 - 02.01.2015, 15:06
Re: Unknow CMD - by Mic_H - 02.01.2015, 15:53
Re: Unknow CMD - by sas10 - 02.01.2015, 16:23
Re: Unknow CMD - by Arxalan - 02.01.2015, 16:38
Re: Unknow CMD - by sas10 - 02.01.2015, 16:47

Forum Jump:


Users browsing this thread: 2 Guest(s)