SA-MP Forums Archive
When admin connect, Then tele to... - 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 admin connect, Then tele to... (/showthread.php?tid=188409)



When admin connect, Then tele to... - Larsey123IsMe - 07.11.2010

When a admin connect, then should the admin spawn here SetPlayerPos(playerid,983.2335,2133.0151,10.8203);

Here is something i tryed but failed xD:

pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT

#endif

public OnPlayerConnect(playerid)
{
        if(IsPlayerAdmin(playerid)==1)
        {
        SetPlayerPos(playerid,983.2335,2133.0151,10.8203);
       
     return 0;
        }
}



Re: When admin connect, Then tele to... - HotRod - 07.11.2010

Firstly, he only just connected, how can he spawn. Secondly, how did he manage to log in rcon when he connects? /fail


Re: When admin connect, Then tele to... - Larsey123IsMe - 07.11.2010

IDK, i am new with scripting that is why i need help?


Re: When admin connect, Then tele to... - Cameltoe - 07.11.2010

pawn Код:
public OnPlayerSpawn(playerid)
{
     if(IsPlayerAdmin(playerid)) // IsPlayerLoggdinto RCON
     {
          SetPlayerPos(playerid,983.2335,2133.0151,10.8203);
     }
     return 1;
}



Re: When admin connect, Then tele to... - Larsey123IsMe - 07.11.2010

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
     if(IsPlayerAdmin(playerid)) // IsPlayerLoggdinto RCON
     {
          SetPlayerPos(playerid,983.2335,2133.0151,10.8203);
     }
     return 1;
}
Thanks, Glad you dont post unessicary posts like other ppls


Re: When admin connect, Then tele to... - Cameltoe - 07.11.2010

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
Random Player Spawns: On a random place
Admin Spawns: At the admin HQ

How to :S
Try the script request thread.