14.02.2014, 16:20
Код:
public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid,Hodiny); TextDrawShowForPlayer(playerid,www); TextDrawHideForPlayer(playerid, Logo); TextDrawHideForPlayer(playerid, Logo2); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); Logged[playerid] = 1; if(PlayerInfo[playerid][pPos_x] == 0 && PlayerInfo[playerid][pPos_y] == 0) { SetPlayerColor(playerid, COLOR_WRITE); SetPlayerPos(playerid, 1689.0211,1450.3179,10.7673); SendClientMessage(playerid, COLOR_RED, "[TiP] Hru by jsi mel zacit tim, ze navstivis hlavni centrum mesta."); SendClientMessage(playerid, COLOR_WRITE, "Toto centrum se nachazi na hlavni tride, Emerald Isle, pobliz policejni stanice."); SendClientMessage(playerid, COLOR_WRITE, "Muzes si zde udelat ridicsky a pilotni prukaz, nebo zazadat o vydani cestovniho pasu."); Logged[playerid] = 1; SpawnPlayer(playerid); return 1; } else { SetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]); Logged[playerid] = 1; SpawnPlayer(playerid); return 1; } }