04.11.2015, 05:30
(
Последний раз редактировалось DyduShxD; 09.11.2015 в 13:17.
)
Salut, am o problema destul de mare la SetPlayerSpawn mai exact imi dau lider /respawn etc totul merge daca dau restart ma spawneaza la civlian spawn imi da peste cap si skin-ul adica imi da alt skin la random
Tin sa precizez ca in baza de date totul arata bine imi este pus numarul la factiune si skin-ul, doar ca dupa restart ma spawneaza ca civil
Tin sa precizez ca in baza de date totul arata bine imi este pus numarul la factiune si skin-ul, doar ca dupa restart ma spawneaza ca civil
Код:
forward SetPlayerSpawn(playerid);
public SetPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pChar] > 0)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
}
else
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
}
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) // Civilian
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1676.3601,1447.9318,10.7847);
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) // LVPD
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,2282.0359,2424.6941,3.4766);
if(PlayerInfo[playerid][pWeaponLic] == 1)
{
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 600);
GivePlayerWeaponEx(playerid, 29, 2500);
GivePlayerWeaponEx(playerid, 31, 2500);
GivePlayerWeaponEx(playerid, 33, 100);
GivePlayerWeaponEx(playerid, 41, 99999);
}
return 1;
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) // Mayor
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,2445.5935,2375.9329,12.1635);
if(PlayerInfo[playerid][pWeaponLic] == 1)
{
GivePlayerWeaponEx(playerid, 15, 1);
}
return 1;
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) // Jamaican Posse
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,2628.3152,2348.8054,10.8203);
if(PlayerInfo[playerid][pWeaponLic] == 1)
{
GivePlayerWeaponEx(playerid, 24, 250);
}
return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) // Mara Salvatrucha
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,2481.2947,1525.3074,11.7737);
if(PlayerInfo[playerid][pWeaponLic] == 1)
{
GivePlayerWeaponEx(playerid, 24, 250);
}
return 1;
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) // Los Zetas
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1456.7838,2773.3408,10.8203);
if(PlayerInfo[playerid][pWeaponLic] == 1)
{
GivePlayerWeaponEx(playerid, 24, 250);
}
return 1;
}
return 1;
}

