Quote:
Originally Posted by DrVenomous
PHP код:
// add this in your gamemode @badscripter
CMD:siren(playerid, params[])
{
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(19620, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.854999, 0.000000, 0.000000, 0.000000);
SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "** %s places a siren on their vehicle and turns it on.", ReturnName(playerid, 0));
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 "CMD
iren(playerid, params[])" It doesn't work even if the <zcmd> is defined .