/siren Doesn't work
#10

Quote:
Originally Posted by DrVenomous
Посмотреть сообщение
PHP код:
// add this in your gamemode @badscripter
CMD:siren(playeridparams[])
{
        if (
GetFactionType(playerid) != POLICE// Only for PD
        
return SendErrorMessage(playerid"You are not member of the Police Department");
        
        if (!
IsADetectiveVehicle(GetPlayerVehicleID(playerid))) // Using the stock below.
        
return SendErrorMessage(playerid"You are not inside a detective vehicle.");
        new 
objectid CreateObject(19620000000);
        
AttachObjectToVehicle(objectidGetPlayerVehicleID(playerid), 0.009999, -0.0199990.8549990.0000000.0000000.000000);
        
SendNearbyMessage(playerid30.0COLOR_PURPLE"** %s places a siren on their vehicle and turns it on."ReturnName(playerid0));
          return 
1;

I have made a simple /siren command. Check it and REP me If it works
My GameMode works on "if(strcmp(cmd, "", true) == 0)" Function ,when i add cmd on "CMDiren(playerid, params[])" It doesn't work even if the <zcmd> is defined .
Reply


Messages In This Thread
/siren Doesn't work - by BadScripter - 24.09.2016, 13:11
Re: /siren Doesn't work - by BadScripter - 24.09.2016, 14:08
Re: /siren Doesn't work - by BadScripter - 25.09.2016, 05:26
Re: /siren Doesn't work - by HoangNam - 25.09.2016, 06:18
Re: /siren Doesn't work - by DrVenomous - 25.09.2016, 06:21
Re: /siren Doesn't work - by BadScripter - 25.09.2016, 06:33
Re: /siren Doesn't work - by DrVenomous - 25.09.2016, 06:43
Re: /siren Doesn't work - by BadScripter - 25.09.2016, 06:55
Re: /siren Doesn't work - by DrVenomous - 25.09.2016, 07:02
Re: /siren Doesn't work - by BadScripter - 25.09.2016, 07:08

Forum Jump:


Users browsing this thread: 1 Guest(s)