This Are Not Work - 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: This Are Not Work (
/showthread.php?tid=99687)
This Are Not Work -
_TeRmiNaToR_ - 29.09.2009
Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
if(vehicleid == ModCar[0])
{
if(!IsPlayerNPC(playerid))
{
SetTimerEx("RemovePlayer", 5_000, false, "d");
}
}
return 1;
}
public RemovePlayer(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
SendClientMessage(playerid, 0xFFFFFFFF, "You Cant enter to this vehicle, only can boths drive this vehicle.");
}
This are not work
Re: This Are Not Work -
coole210 - 29.09.2009
OnPlayerSpawn:
pawn Код:
if(IsPlayerNPC(playerid))
{
if(strmatch(PlayerName(playerid),"BOT_NAME_HERE"))
{
PutPlayerInVehicle(playerid,ModCar[0],0);
return 1;
}
}
Cannot be stolen.
Re: This Are Not Work -
_TeRmiNaToR_ - 29.09.2009
Quote:
Originally Posted by [TPG
Coole210 ]
OnPlayerSpawn:
pawn Код:
if(IsPlayerNPC(playerid)) { if(strmatch(PlayerName(playerid),"BOT_NAME_HERE")) { PutPlayerInVehicle(playerid,ModCar[0],0); return 1; } }
Cannot be stolen.
|
I make make both for when a player enter to boths vehicle for passenger ; both are starting to recording. But when a player enter passenger I will it remove from vehicle.
Re: This Are Not Work -
dice7 - 29.09.2009
pawn Код:
SetTimerEx("RemovePlayer", 5000, false, "d", playerid);