Question & 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: Question & Help (
/showthread.php?tid=267685)
Question & Help -
GeonMake - 09.07.2011
How do I make a callback to: when you enter the server to give you the spec on the car with id 245 and after 10 seconds to remove your spawn speculative and give you a position?
Thanks. Help please
Re: Question & Help -
HayZatic - 09.07.2011
I honstly dont know how some people answer questions that dont make sense. Can you clean up your words and crap?
Re: Question & Help -
GeonMake - 09.07.2011
How do I connect to the server as a player spectator automatically give them the car with id 245 and after 10 seconds it out and give him spawn? ( sorry.. i use ****** translate )
Re: Question & Help -
LetsOWN[PL] - 09.07.2011
@Geon
You mean, that if player connect, then automatically he's a spectator, and he gets car with id 245, and after 10 secs player is spawning?
What's a sense of this?
Re: Question & Help -
HayZatic - 09.07.2011
Spectate Who Specifically? Giving them the car is easy. the 10 seconds your gonna need to use the timer ofcourse.
Re: Question & Help -
GeonMake - 09.07.2011
pawn Код:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerNPC(playerid) != 1)
{
if(PlayerInfo[playerid][pFirstLogin] == 0)
{
I have a variable that is so: first login FirstLogin playeru's I want to give spec on the car with id 245 (led by an NPC) for 10 seconds and after receiving respawn
Re: Question & Help -
GeonMake - 09.07.2011
Help me please..
Re: Question & Help -
GeonMake - 10.07.2011
Bump...
Re: Question & Help -
=WoR=Varth - 11.07.2011
pawn Код:
PlayerSpectateVehicle(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL);
That's what you mean?
Re: Question & Help -
Adil - 11.07.2011
pawn Код:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerNPC(playerid) != 1)
{
if(PlayerInfo[playerid][pFirstLogin] == 0)
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, 245);
SetTimerEx("SpawnPlayer", 10000, 0, "d", playerid);
}
}
}
}
pawn Код:
forward SpawnPlayer(playerid);
pawn Код:
public SpawnPlayer(playerid)
{
TogglePlayerSpectating(playerid, 0);
SpawnPlayer(playerid);
}