21.07.2010, 08:39
hello. I need help with a command:
can someone make this like /hotwire and playername is tryng to hotwire the engine but doesen't start and when you write /hotwire again then again playername is tryng to hotwire a car and engine starts. I want like this, that if your carjacking ,or whatever it is called, skill is low then the starting rate is less, if you have a higher carjacking skill you can start the car more easily and the starting rate to not starting is bigger. Hope i wrote it understanably but i really need some help. Thank you anyway.
Код:
if(strcmp(cmd, "/hotwire", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { if(PlayerInfo[playerid][pJob] == 5) { TogglePlayerControllable(playerid, 1); } else { SendClientMessage(playerid, 0xAFAFAFAA, "* You are not a car jacker!"); } } else { SendClientMessage(playerid, 0xAFAFAFAA, "* you need to sit in the car!"); } return 1; }