/Siren Help Please [+REP]
#3

I have removed that line and the problem is still there.

PHP код:
    if(strcmp(cmd"/siren"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || gTeam[playerid] == 2)
            {
                new 
VID GetPlayerVehicleID(playerid);
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GREY"USAGE: /siren [inside, roof, remove]");
                    
SendClientMessage(playeridCOLOR_GREY"[INFO]: 'remove' will remove the item from your vehicle!");
                    return 
1;
                }
                
strmid(Sirentmp0strlen(cmdtext), 255);
                if(
strcmp(Siren"inside"truestrlen(Siren)) == 0)
                {
                    if(!
IsValidObject(Siren[playerid]))
                    {
                        
//if(VID != 426) { return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to be in a Premier model!"); } // If he's not in a Premier...
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
Siren[playerid] = CreateObject(1941910.010.010.0000);
                        
AttachObjectToVehicle(Siren[playerid], VID0.00.750.40.00.10.0); // Inside - Premier
                        
format(stringsizeof(string), "* %s puts the siren on the dashboard."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    } else { return 
SendClientMessage(playeridCOLOR_GREY"[ERROR] You already have a siren!"); }
                }
                else if(
strcmp(Siren"roof"truestrlen(Siren)) == 0)
                {
                    if(!
IsValidObject(Siren[playerid]))
                    {
                        
//if(VID != 426) { return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to be in a Premier model!"); } // If he's not in a Premier...
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
Siren[playerid] = CreateObject(1941910.010.010.0000);
                        
AttachObjectToVehicle(Siren[playerid], VID0.00.00.80.00.10.0); // tak - Premier
                        
format(stringsizeof(string), "* %s puts the siren on the roof."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    } else { return 
SendClientMessage(playeridCOLOR_GREY"[ERROR] You already have a siren!"); }
                }
                else if(
strcmp(Siren"remove"truestrlen(Siren)) == 0)
                {
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
DestroyObject(Siren[playerid]);
                    
format(stringsizeof(string), "* %s takes down the siren."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
            } else { 
SendClientMessage(playeridCOLOR_GREY"[ERROR] You're not part of the team !"); }
        }
        return 
1;
    } 
Reply


Messages In This Thread
/Siren Help Please [+REP] - by rbush12 - 30.09.2012, 10:06
Re: /Siren Help Please [+REP] - by The-gold - 30.09.2012, 10:43
Re: /Siren Help Please [+REP] - by rbush12 - 30.09.2012, 10:46
Re: /Siren Help Please [+REP] - by The-gold - 30.09.2012, 10:50
Re: /Siren Help Please [+REP] - by rbush12 - 30.09.2012, 11:30
Re: /Siren Help Please [+REP] - by rbush12 - 30.09.2012, 12:23
Re: /Siren Help Please [+REP] - by Mr.Anonymous - 30.09.2012, 12:26
Re: /Siren Help Please [+REP] - by Danyal - 30.09.2012, 12:47
Re: /Siren Help Please [+REP] - by rbush12 - 30.09.2012, 13:14
Re: /Siren Help Please [+REP] - by Danyal - 30.09.2012, 13:17

Forum Jump:


Users browsing this thread: 2 Guest(s)