Command error
#7

Quote:
Originally Posted by SaMuRy
Посмотреть сообщение
// --- Pay Attention fixed if(Roadblocks[playerid][sCreated] == 1)
what are you doing dude?
please dont post if you dont know whats the real matter okay.


PHP код:
CMD:rrb(playeridparams[])
{
    if(
gTeam[playerid] != TEAM_COP && Player[playerid][AccountLevel] < 5) return SCM(playeridCOLOR_LIGHTRED"* You must be a law enforcement officer to remove a roadblock.");
    if (
Player[playerid][AccountLevel] < 5) return 0;
    if(
Player[playerid][Jailed] == 1) return SCM(playeridCOLOR_LIGHTRED"* You can't use this command while jailed.");
    
SendNearbyMessage(playerid30.0COLOR_BBLUE"* %s has picked up a roadblock object."ReturnName(playerid0));
    
    new 
string[100];
    
format(string,sizeof(string),"* [DISPATCHER]: %s has picked up a roadblock.",  ReturnName(playerid0));
    
SendMessageToCops(string);
    new 
countrb=0;
    for(new 
0sizeof(Roadblocks); i++)
    {
        if(
IsPlayerInRangeOfPoint(playerid5.0Roadblocks[i][sX], Roadblocks[i][sY], Roadblocks[i][sZ]))
        {
            if(
Roadblocks[i][sCreated] == 1)
            {
                
Roadblocks[i][sCreated] = 0;
                
Roadblocks[i][sX] = 0.0;
                
Roadblocks[i][sY] = 0.0;
                
Roadblocks[i][sZ] = 0.0;
                
DestroyDynamicObject(Roadblocks[i][sObject]);
                
countrb++;
            }
        }
    }
    if(
countrb>0)
    {
        
SCM(playeridCOLOR_LIGHTRED"* You are not near a roadblock.");
    }
    return 
1;

use this
Reply


Messages In This Thread
Command error - by KinderClans - 29.09.2018, 17:15
Re: Command error - by Undef1ned - 29.09.2018, 17:24
Re: Command error - by UFF - 29.09.2018, 17:45
Re: Command error - by CaptainBoi - 29.09.2018, 18:23
Re: Command error - by KinderClans - 29.09.2018, 18:50
Re: Command error - by SaMuRy - 29.09.2018, 19:04
Re: Command error - by CaptainBoi - 29.09.2018, 19:19
Re: Command error - by CaptainBoi - 29.09.2018, 19:28
Re: Command error - by KinderClans - 29.09.2018, 20:26
Re: Command error - by CaptainBoi - 30.09.2018, 04:28

Forum Jump:


Users browsing this thread: 1 Guest(s)