09.01.2011, 02:35
Hi Pro Scripters! xD
I hope someone here can help...
I am using the LSLRP Script. When I am a normal civillian and I type the /impound CMD It says You are not a cop!
But When I am a cop, and I do /Impound It says unknown command.
Below is the code, Can you spot anything that as wrong? Or does anyone have an Alternative piece of /impound code?
I hope someone here can help...
I am using the LSLRP Script. When I am a normal civillian and I type the /impound CMD It says You are not a cop!
But When I am a cop, and I do /Impound It says unknown command.
Below is the code, Can you spot anything that as wrong? Or does anyone have an Alternative piece of /impound code?
Код:
if(!strcmp(cmdtext,"/impound",true)) { if(!IsACop(playerid))return SendClientMessage(playerid,COLOR_WHITE,"You must be a cop to perform this"); if(!cmdtext[9])return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /Impound [playerid/name]"); new player=ReturnUser(cmdtext[9]); if(!IsPlayerConnected(player))return SendClientMessage(playerid,COLOR_WHITE,"Player Not Found"); if(!IsPlayerInAnyVehicle(player))return SendClientMessage(playerid,COLOR_WHITE,"Player Is Not In A Vehicle"); new vehid=GetPlayerVehicleID(player); new lights,alarm,doors,bonnet,boot,objective; Impounded[vehid]=1; GetVehicleParamsEx(vehid,lights,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehid,0,lights,alarm,doors,bonnet,boot,objective); return SendClientMessage(playerid,COLOR_WHITE,"Vehicle has been booted!"); }