Syringe script
#1

Hey, I am trying to create a command which sets the target player frozen and their drunk level, but I can not make this command work. What am I doing wrong?

Код:
CMD:syringe(playerid, params[])
{
	new id;
	if(sscanf(params, "ud", id)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /syringe [ID]");
	
		if(!IsPlayerInAnyVehicle(playerid));
		{
		    TogglePlayerControllable(id, 0);
		    SetPlayerDrunkLevel(id, 10000);
		}
		else
		{
	    	SendClientMessage(playerid, COLOR_ORANGE, "You have to be on foot to use the syringe!");
		}
		return 1;
}
Reply


Messages In This Thread
Syringe script - by Avetsky - 29.07.2016, 13:04
Re: Syringe script - by Stuntff - 29.07.2016, 13:07
Re: Syringe script - by Avetsky - 29.07.2016, 13:10
Re: Syringe script - by FuNkYTheGreat - 29.07.2016, 13:15
Re: Syringe script - by Avetsky - 29.07.2016, 13:20
Re: Syringe script - by FuNkYTheGreat - 29.07.2016, 13:23
Re: Syringe script - by Konstantinos - 29.07.2016, 13:30
Re: Syringe script - by Avetsky - 29.07.2016, 16:23
Re: Syringe script - by Logic_ - 29.07.2016, 16:30
Re: Syringe script - by Avetsky - 29.07.2016, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)