07.10.2011, 01:45
pawn Код:
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid,SOUND_OFF,0.0, 0.0, 0.0);
if(PlayerInfo[playerid][TutorialV] == 0)
{
Inicial(playerid);
return 1;
}
SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
autoescola[playerid] = 0;
if(PlayerInfo[playerid][ChaveCasa]!= -255)
{
format(abrirarquivo, sizeof(abrirarquivo), PASTA_CONTAS, pName(playerid));
SetPlayerPos(playerid, hInfo[ dini_Int(abrirarquivo, "ChaveCasa") ][ iconx ],hInfo[ dini_Int(abrirarquivo, "ChaveCasa") ][ icony ],hInfo[ dini_Int(abrirarquivo, "ChaveCasa") ][ iconz ]);
}
else
{
CarregarProf(playerid);
}
SetPlayerPos(playerid, X, Y, Z);//AQUI COLOQUE AS COORDENADAS INICIAIS.
//==============================================================================
GangZoneShowForPlayer(playerid, Pesca, ColorPesca);
GangZoneShowForPlayer(playerid, Drogas, ColorDrogas);
return 1;
}