25.09.2014, 01:29
Quote:
|
si sуlo pasa cuando te logueas pues donde debes buscar?? en la funciуn del logueo
![]() |
Код:
public OnPlayerSpawn(playerid)
{
if(!gPlayerLogged{playerid})
{
SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: No has ingresado correctamente al servidor!");
Kick(playerid);
return 1;
}
if(IsPlayerNPC(playerid)) return 1;
if(!gPlayerAnimLibsPreloaded[playerid])
{
LoadAnimLibs(playerid);
gPlayerAnimLibsPreloaded[playerid] = 1;
}
SetPlayerWantedLevel(playerid, Info[playerid][pWantedLevel]);
gTeam[playerid] = Info[playerid][pTeam]; //Set the Team
SetPlayerSpawn(playerid);
SetPlayerWeapons(playerid);
OnDuty[playerid] = 0;
SetPlayerToTeamColor(playerid);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
SyncPlayerTime(playerid);
if(Info[playerid][pDutyPolicia] == 1)
{
{
if(Info[playerid][pRank] == 1)
SetPlayerSkin(playerid, 280);
RadioOn[playerid] = 1;
OnDuty[playerid] = 1;
Info[playerid][pDutyPolicia] = 1;
}
{
if(Info[playerid][pRank] == 2)
SetPlayerSkin(playerid, 281);
RadioOn[playerid] = 1;
OnDuty[playerid] = 1;
Info[playerid][pDutyPolicia] = 1;
}
{
if(Info[playerid][pRank] == 3)
SetPlayerSkin(playerid, 266);
RadioOn[playerid] = 1;
OnDuty[playerid] = 1;
Info[playerid][pDutyPolicia] = 1;
}
{
if(Info[playerid][pRank] == 4)
SetPlayerSkin(playerid, 265);
RadioOn[playerid] = 1;
OnDuty[playerid] = 1;
Info[playerid][pDutyPolicia] = 1;
}
{
if(Info[playerid][pRank] == 5)
SetPlayerSkin(playerid, 281);
RadioOn[playerid] = 1;
OnDuty[playerid] = 1;
Info[playerid][pDutyPolicia] = 1;
}
{
if(Info[playerid][pLeader] == 1)
SetPlayerSkin(playerid, 281);
RadioOn[playerid] = 1;
OnDuty[playerid] = 1;
Info[playerid][pDutyPolicia] = 1;
}
{
if(Info[playerid][pSex] == 2)
SetPlayerSkin(playerid, 211);
RadioOn[playerid] = 1;
OnDuty[playerid] = 1;
Info[playerid][pDutyPolicia] = 1;
}
SetPlayerColor(playerid, TEAM_BLUE_COLOR);
ShowPlayerMarkers(0);
}
if(Info[playerid][pDutyPolicia] == 0)
{
SetPlayerSkin(playerid, Info[playerid][pChar]);
SetPlayerColor(playerid, TEAM_HIT_COLOR);
}
return 1;
}



