When admin connect, Then tele to...
#1

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;
        }
}
Reply
#2

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

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

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

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
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)