03.03.2009, 16:54
hello,
i was trying to make a fix command for admins to fix their cars. i tryed to get one from internet, but they didn't work on my server, so i was going to make one myself.
now i got this and it wont work. and how can i make it say something if ur not in a vehicle?
here is the script:
i hope you can help me.
thuron
i was trying to make a fix command for admins to fix their cars. i tryed to get one from internet, but they didn't work on my server, so i was going to make one myself.
now i got this and it wont work. and how can i make it say something if ur not in a vehicle?
here is the script:
Код:
{ if (strcmp("/fix", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) if(IsPlayerInAnyVehicle(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000); } else { SendClientMessage(playerid, COLOR_CRED, "SERVER: You are not an admin"); } return 1; }
thuron