Drive By CMD
#1

Hello SA:MP,
Can someone finish this CMD?

Код:
CMD:driveby(playerid, params[])
{
	new HisState;
	HisState = GetPlayerState(playerid);
	if(IsPlayerInRangeOfPoint(playerid, 4, 1214.5676,-905.8721,42.9207))
	{
		if(HisState == PLAYER_STATE_DRIVER)
		{
		    SetPlayerHealth(playerid, 100);
		    SendClientMessage(playerid, -1, "Thank you for choosing our services, come again later!");
		}
		else
		{
		    SendClientMessage(playerid, -1, "You are not driving a car.");
		    return 1;
		}
	}
	else
	{
	    SendClientMessage(playerid, -1, "You are not at the drive-by order spot.");
	    return 1;
	}
	return 1;
}
Please put timer...I mean..When someone times "/driveby" he should wait 15seconds and he cant move... [FREEZE]

THANK YOU!
Reply


Messages In This Thread
Drive By CMD - by Gogorakis - 12.11.2013, 21:13
Re: Drive By CMD - by DobbysGamertag - 12.11.2013, 21:18
Re : Drive By CMD - by samp_boy - 12.11.2013, 21:19
Re: Drive By CMD - by Loot - 12.11.2013, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)