29.06.2012, 12:03
Код:
public OnPlayerSpawn(playerid) { Log("[PLAYER]Gracz %s został zespawnowany.", LOG_PLAYERSTATE, P[playerid][pNick]); if(IsPlayerNPC(playerid)) { CzyscGracza(playerid); SetPlayerSkin(playerid, 16); PutPlayerInVehicle(playerid, NPCVehID, 0); return 1; } if(!P[playerid][pLogin]) { Info(playerid, "Nie jesteś zalogowany, więc nie możesz się zrespawnować."); Kick(playerid); } ReloadAnims(playerid); TextDrawHideForPlayer(playerid, Zaslona[0]); TextDrawHideForPlayer(playerid, Zaslona[1]); ResetPlayerMoney(playerid); SetPlayerVW(playerid, P[playerid][pVW]); GivePlayerMoney(playerid, P[playerid][pCash]); SetPlayerHealth(playerid, P[playerid][pHP]); SetPlayerSkin(playerid, P[playerid][pSkin]); //TextDrawShowForPlayer(playerid, TDKary); SetPlayerPos(playerid, P[playerid][pPosX], P[playerid][pPosY], P[playerid][pPosZ]); printf("%f, %f, %f, %i",P[playerid][pPosX], P[playerid][pPosY], P[playerid][pPosZ]+1, P[playerid][pSkin]); return 1; }