29.08.2009, 21:08
Ey guys
How do I make some Admin spawnplaces?
Greets Geert
How do I make some Admin spawnplaces?
Greets Geert
if(IsPlayerAdmin(playerid)) { SetPlayerPos(playerid,X,Y,Z); } return 1; }
Originally Posted by [LSB
Clinz ]
Under OnPlayerSpawn; Код:
if(IsPlayerAdmin(playerid); |
if(IsPlayerAdmin(playerid))
{
//======== RCON Administrator Spawn
SetPlayerPos(playerid,X,Y,Z);
}
else
{
//======== Normal Spawn
SetPlayerPos(playerid,X,Y,Z);
}
Originally Posted by ►☺◄©ookie►☺◄
pawn Код:
|
if(IsPlayerAdmin(playerid))
{
SetPlayerPos(playerid, X, Y, Z);
}
if(IsPlayerAdmin(playerid))
{
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, 0); //Change this, i put it outside.
}
else
{
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, 0); //Change this.
}
Originally Posted by Feyenoorder
sorry for double post but it says'
gamemode.pwn(41) : error 017: undefined symbol "playerid" gamemode.pwn(43) : error 017: undefined symbol "playerid" what to do |
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerAdmin(playerid)) //Change this to your servers admin system.
{
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, 0); //Change this, i put it outside.
}
else
{
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, 0); //Change this.
}
return 1;
}