Does anyone know how to do the work? Fasten seat belt
#1

To take a car then. Order to fasten seat belt
Reply
#2

what u mean? a seat belt filterscript?
Reply
#3

Код:
{
	if (strcmp("/fasten", cmdtext, true, 10) == 0)
	{
		if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle to use this command");
	 	else
        SendClientMessage(playerid, 0xF0F8FFAA "you have buckled up use /unfasten to unbuckle.");
 		return 1;
	}
{
	if (strcmp("/unfasten", cmdtext, true, 10) == 0)
	{
		if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle use this command!");
	 	else
		SendClientMessage(playerid, 0xF0F8FFAA "you have unbuckled your seat belt.");
 		return 1;
	}
simple but it works
Reply
#4

Quote:
Originally Posted by BLAbla93
Код:
{
	if (strcmp("/fasten", cmdtext, true, 10) == 0)
	{
		if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle to use this command");
	 	else
        SendClientMessage(playerid, 0xF0F8FFAA "you have buckled up use /unfasten to unbuckle.");
 		return 1;
	}
{
	if (strcmp("/unfasten", cmdtext, true, 10) == 0)
	{
		if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle use this command!");
	 	else
		SendClientMessage(playerid, 0xF0F8FFAA "you have unbuckled your seat belt.");
 		return 1;
	}
simple but it works
dotdotdot
Reply
#5

Thank You ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)