GivePlayerWeapon
sollte ich das da einfügen ?
public OnPlayerSpawn(playerid)
{
if(!isPlayerInFrakt(playerid, 0))
{
if(sInfo[playerid][spawnchange]==1)
{
new fID;
fID = sInfo[playerid][fraktion];
SetPlayerPos(playerid, fInfo[fID][f_x],fInfo[fID][f_y],fInfo[fID][f_z]);
SetPlayerFacingAngle(playerid, fInfo[fID][f_r]);
SetPlayerInterior(playerid, fInfo[fID][f_inter]);
SetPlayerVirtualWorld(playerid, fInfo[fID][f_world]);
}
}
SetPlayerSkin(playerid,sInfo[playerid][Skin]);
return 1;
}
enum fraktEnum
{
f_name[128],
Float:f_x,
Float:f_y,
Float:f_z,
Float:f_r,
f_inter,
f_world,
f_waffe1,
f_ammo1,
f_waffe2,
f_ammo2
}
new fInfo[][fraktEnum] = {
{"Zivilist",369.8406,-2055.3186,7.8359,356.8666,0,0,0,0,0,0},
{"LSPD",219.6863,69.0100,1005.0391,290.2877,6,1,0,0,0,0},
{"Medic",350.7579,163.5592,1019.9912,325.7878,3,2,0,0,0,0},
{"Oamt",349.0692,162.0779,1025.7891,270.6080,3,5,0,0,0,0},
{"News",349.0692,162.0779,1025.7891,270.6080,3,11,0,0,0,0},
{"Fahrschule",-2023.1954,-114.4999,1035.1719,92.8690,3,12,0,0,0,0},
{"Groove Street",2807.5854,-1168.1516,1025.5703,178.8052,8,14,24,50,29,250},
{"Ballas",2807.5854,-1168.1516,1025.5703,178.8052,8,15,24,50,29,250},
{"Los Santos Vagos",2807.5854,-1168.1516,1025.5703,178.8052,8,16,24,50,29,250},
{"Varios Los Aztecas",2807.5854,-1168.1516,1025.5703,178.8052,8,17,24,50,29,250},
{"S.F Rifa",2807.5854,-1168.1516,1025.5703,178.8052,8,18,24,50,29,250},
{"LCN",2807.5854,-1168.1516,1025.5703,178.8052,8,8,24,50,29,250},
{"Yakuza",2807.5854,-1168.1516,1025.5703,178.8052,8,9,24,50,29,250},
{"Russen",2807.5854,-1168.1516,1025.5703,178.8052,8,19,24,50,29,250},
{"Hitman",-688.1939,935.9031,13.6328,359.6828,0,10,0,0,0,0}
};