Possible error with /impound Command.
#1

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?

Код:
 
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!");
	}
Reply


Messages In This Thread
Possible error with /impound Command. - by iiLiamii - 09.01.2011, 02:35
Re: Possible error with /impound Command. - by Kwarde - 09.01.2011, 02:38
Re: Possible error with /impound Command. - by ToPhrESH - 09.01.2011, 02:39
Re: Possible error with /impound Command. - by iiLiamii - 09.01.2011, 02:43
Re: Possible error with /impound Command. - by iiLiamii - 09.01.2011, 02:48
Re: Possible error with /impound Command. - by iiLiamii - 09.01.2011, 02:49
Re: Possible error with /impound Command. - by Kwarde - 09.01.2011, 02:50
Re: Possible error with /impound Command. - by iiLiamii - 09.01.2011, 02:52
Re: Possible error with /impound Command. - by Kwarde - 09.01.2011, 02:57

Forum Jump:


Users browsing this thread: 1 Guest(s)