SA-MP Forums Archive
Does anyone know how to do the work? Fasten seat belt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Does anyone know how to do the work? Fasten seat belt (/showthread.php?tid=104528)



Does anyone know how to do the work? Fasten seat belt - uplovethai - 25.10.2009

To take a car then. Order to fasten seat belt


Re: Does anyone know how to do the work? Fasten seat belt - Smokey619 - 25.10.2009

what u mean? a seat belt filterscript?


Re: Does anyone know how to do the work? Fasten seat belt - BLAbla93 - 25.10.2009

Код:
{
	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



Re: Does anyone know how to do the work? Fasten seat belt - (.Aztec); - 25.10.2009

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


Re: Does anyone know how to do the work? Fasten seat belt - uplovethai - 25.10.2009

Thank You ^^