18.12.2013, 11:05
hello everyone
I have very annoying problem, i creating roleplay server, all is fine, working great, but one thing..
I transfered FBI base to Los Santos, spawned cars, created inside/outside pickups (to get in bulding/interior and get out of that) thats ok.
I maded two pickups. Its weapon pickup with dialog text (can choose weapons), and skin pickup (can choose skins, ex. gangs, mafia and others) But it dont work, i tried to fix this all day, but nothing..
I hope u guys can help me with this,
thanks anyway
I have very annoying problem, i creating roleplay server, all is fine, working great, but one thing..
I transfered FBI base to Los Santos, spawned cars, created inside/outside pickups (to get in bulding/interior and get out of that) thats ok.
I maded two pickups. Its weapon pickup with dialog text (can choose weapons), and skin pickup (can choose skins, ex. gangs, mafia and others) But it dont work, i tried to fix this all day, but nothing..
PHP код:
new fbi[2];
new pickfbi[4];
PHP код:
if(pickupid == fbi[0]) //FBI 1
{
SetPlayerInterior(playerid, 4);
SetPlayerVirtualWorld(playerid, 2);
SetPlayerPos(playerid,286.1680,-83.9736,1001.5156);
SetPlayerFacingAngle(playerid,356.2);
}
if(pickupid == fbi[1]) //FBI 2
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,942.4717,-1744.5734,13.5469);
SetPlayerFacingAngle(playerid, 274.31);
}
if(pickupid == pickfbi[0]) //FBI Skins
{
if(PlayerInfo[playerid][pMember] != 13)return 1;
ShowPlayerDialog(playerid,PREKRUTIE, DIALOG_STYLE_LIST, "{DB7095}Choose Skin!", "Groove Street\nThe Ballas\nLos Santos Vagos\nThe Rifa\nVarior Los Aztecas\nLa Cosa Nostra\nYakuza\nРусская Мафия\n - Change Back", "Done", "EXIT");
}
if(pickupid == pickfbi[2]) //tear FBI
{
SetPlayerInterior(playerid, 4);
SetPlayerVirtualWorld(playerid, 2);
SetPlayerPos(playerid,301.4785,-78.3682,1001.5156);
SetPlayerFacingAngle(playerid, 133.8311);
}
if(pickupid == pickfbi[3]) //tear FBI
{
SetPlayerInterior(playerid, 7);
SetPlayerVirtualWorld(playerid, 2);
SetPlayerPos(playerid,303.0892,-140.0957,1004.0625);
SetPlayerFacingAngle(playerid, 18.8311);
}
if(pickupid == pickfbi[1]) //FBI weps
{
if(PlayerInfo[playerid][pMember] != 13 && PlayerInfo[playerid][pMember] != 9)return 1;
ShowPlayerDialog(playerid,GUNLVPD, DIALOG_STYLE_LIST, "{fde910}FBI", "1. Baton\n2. Armour\n3. Desert Eagle\n4. Silenced 9mm\n5. MP5\n6. Shield\n7. Sniper", "Choose", "Exit");
}
PHP код:
fbi[0] = CreatePickup(19133,23,943.0108,-1742.5677,13.5546);//fbi вход
fbi[1] = CreatePickup(19133,23,285.8751,-86.7779,1001.5229);//fbi выход
pickfbi[0] = CreatePickup(1275,23,287.9043,-76.9199,1001.5156,2);//fbi skin
pickfbi[1] = CreatePickup(1239,23,294.3549,-83.6069,1001.5156);//fbi gun
pickfbi[2] = CreatePickup(1318,23,304.1519,-141.7657,1004.0625);//fbi tear
pickfbi[3] = CreatePickup(1318,23,301.5671,-76.5421,1001.5156);//fbi fbi tear
thanks anyway