10.02.2012, 08:52
So I'm working around with a gamemode, and it seems like I've discovered a few bugs which I can't seem to get fixed.
First of all, then I wanted to make sure that you could lock your cars, so I downloaded "Cali-Cars (filterscript)" but apperently the /lock only locks the car for the owner. Anyone else can enter it, and drive it.
On the other hand, then I can't get my /nos command to work for only mechanics.
First of all, then I wanted to make sure that you could lock your cars, so I downloaded "Cali-Cars (filterscript)" but apperently the /lock only locks the car for the owner. Anyone else can enter it, and drive it.
On the other hand, then I can't get my /nos command to work for only mechanics.
Код:
if(strcmp(cmdtext, "/nos", true) == 0)
{
if(PlayerInfo[playerid][pJob] != 7)
{
new vehicleid = GetPlayerVehicleID(playerid);
AddVehicleComponent(vehicleid, 1010);
SendClientMessage(playerid,0xFFFFFFFF," You added NOS to the vehicle");
format(string, sizeof(string), "* %s added nitrous injection to the car.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
return 1;
}
else
{
SendClientMessage(playerid, 0xFFFFFFF, " You're not a car mechanic!");
}
}

