[Tag] Help. - 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)
+--- Thread: [Tag] Help. (
/showthread.php?tid=398219)
[Tag] Help. -
Lynet - 08.12.2012
Guys, Im going to Create a simple script.
Need some help.
Like a specific voodoo is spawned in GS hood and only guys with [GS] tag уn Can USE The Car?
Help please!
Re: [Tag] Help. -
Lz - 08.12.2012
OnPlayerChangeState , Check if the player is entering the driver seat..
If he is
GetPlayerTeam.. if team = Grove team
return 1;
}
else
{
return 0;
Re: [Tag] Help. -
Lynet - 08.12.2012
Someone give a full code?
Pay 3$? Pls help
Re: [Tag] Help. -
[HK]Ryder[AN] - 09.12.2012
Top Of Script
In Ongamemodeinit
pawn Код:
Lynet = AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
In OnPlayerStateChange
pawn Код:
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle == Lynet)
{
if(strcmp(PlayerName,"[GSF]Lynet",true))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33AA33AA, "I'm sorry, but this car has been reserved for [GSF]Lynet");
}
}
}
Re: [Tag] Help. -
Lynet - 09.12.2012
Not that....
Like if i not wear [GSF] tag Then i cant drive the car?
Re: [Tag] Help. -
Lynet - 09.12.2012
WHO Can solve this.
I'll pay 13$!
Re: [Tag] Help. -
Lynet - 09.12.2012
Bump
Re: [Tag] Help. -
cessil - 09.12.2012
you got your answer, this isn't a market place, it's for people that want to learn and need help