When player Enters vehicle...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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: When player Enters vehicle...help! (
/showthread.php?tid=64022)
Re: When player Enters vehicle...help! -
Static_X - 02.02.2009
Hmmm .. i shoud shut up before i thank.. someo0ne... lol
the Prop now is that players can still enter the big quary "truck" Designed only to be allowable to acces for Death_Angel Name oNLy... now can you fix that ?
Re: When player Enters vehicle...help! -
Nero_3D - 02.02.2009
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == deathtruck)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
if(strcmp("Death_Angel", name, true) != 0) RemovePlayerFromVehicle(playerid),
SendClientMessage(playerid, 0xFFFFFFAA, "ERROR: This Vehicle is For DeathAngel ONLY !");
}
return 1;
}
The Player cant be 100% stoped entering / joging the other person out of the car
Re: When player Enters vehicle...help! -
Static_X - 02.02.2009
Well.. well.. i dont want eny other person enters the vehicle defined for the name... now do I ? .. Maybe SA-MP bug -.-
Re: When player Enters vehicle...help! -
Static_X - 02.02.2009
Nevermind my prevuis post... IT WORKS!!