how ? - 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: how ? (
/showthread.php?tid=83612)
how ? -
radi - 26.06.2009
how can i forbid players to go in a hydra , tank , hunter and patriot
like a system that blocks these vehicle id's 470 , 432 , 520 , 425
that only let players with a cop rank allowed in that vehicle
the cop system from pen
Re: how ? -
radi - 26.06.2009
no one ?
Re: how ? -
Correlli - 26.06.2009
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:x_pos, Float:y_pos, Float:z_pos;
if((GetVehicleModel(vehicleid) == _MODEL_ID_YOU_WANT_) && (!_IS_PLAYER_COP_DEFINE_[playerid]))
{
GetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerPos(playerid, x_pos, y_pos, z_pos);
SendClientMessage(playerid, 0xFFFFFFAA, "You can't enter this vehicle!");
}
return 1;
}
Re: how ? -
illay - 26.06.2009
Download...
Re: how ? -
radi - 26.06.2009
Quote:
Originally Posted by illay
Download...
|
not a blocker
a block for some people
who dont have the rank to use it