SA-MP Forums Archive
how to change.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to change.. (/showthread.php?tid=507443)



how to change.. - oFFiCiaLBr - 17.04.2014

i want to change the interiors of hq factions


sorry for my bad english


Re: how to change.. - Dignity - 17.04.2014

Then do it.

How do you expect us to help you if you don't show us your code?


Re: how to change.. - oFFiCiaLBr - 17.04.2014

Quote:

if (PlayerData[playerid][pMember] == 16 || PlayerData[playerid][pLeader] == 16) //Corleone Spawn
{
SendClientMessage(playerid, COLOR_WHITE, "Scrie {ffff00}/takeguns {ffffff}ca sa cumperi un set de arme cu {228B22}${FFFFFF}1500 sau /exit sa iesi din HQ.");
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2120.9224,-2272.6870,20.6719 );
SetPlayerInterior(playerid,0);
PlayerData[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
GivePlayerWeapon(playerid, 24, 50);
GivePlayerWeapon(playerid, 1, 1);
return 1;

here i need to change the coordonate?


Re: how to change.. - Dignity - 17.04.2014

You change your current interior to the one you want changing these:

pawn Код:
SetPlayerPos(playerid, 2120.9224,-2272.6870,20.6719 ); // Coordinates
SetPlayerInterior(playerid,0); // Self explanatory, interior
PlayerData[playerid][pInt] = 0; // Not sure what this does but I think it should be the same as the interior value
SetPlayerVirtualWorld(playerid, 0); // Generally 0



Re: how to change.. - oFFiCiaLBr - 17.04.2014

thx man