23.01.2019, 19:24
EXAMPLE:
Code:
if(PlayerInfo[playerid][pGroup]) { SpawnPlayerInHQ(playerid); } SpawnPlayerInHQ(playerid) { if(PlayerInfo[playerid][pGroup] == 1) { SetPlayerPos(playerid, Float:x, Float:y, Float:z); SetPlayerInterior(playerid, interiorid); SetPlayerVirtualWorld(playerid, worldid); } if(PlayerInfo[playerid][pGroup] == 2) { SetPlayerPos(playerid, Float:x, Float:y, Float:z); SetPlayerInterior(playerid, interiorid); SetPlayerVirtualWorld(playerid, worldid); } //... return 1; }