SA-MP Forums Archive
Cars Problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cars Problem (/showthread.php?tid=200084)



Cars Problem - djaCido23 - 17.12.2010

Hi again...when i enter in a HQ(/enter) and then i go out(/exit) the cars dissapeared...How can i solve this?Thanks!!!


Re: Cars Problem - notime - 17.12.2010

posting some codings like /enter and /exit would help alot, and show me how your cars are spawned(probly at OnGameModeInit with CreateVehicle)


Re: Cars Problem - djaCido23 - 17.12.2010

this is /enter:

if(strcmp(cmdtext, "/enter", true) == 0)
{
if(PlayerInfo[playerid][pMember] >= 6 || PlayerInfo[playerid][pLeader] >= 6)
{
if PlayerToPoint(5,playerid,-2522.0139,1215.7468,37.4283)
*then
{
SetPlayerPos(playerid,748.6010,1437.7462,1102.9531 );
SetPlayerInterior(playerid,6);
SetPlayerVirtualWorld(playerid, 6);
SendClientMessage(playerid,COLOR_1GREEN,"*** Welcome to Yakuza HQ !");
return 1;
}
}
}

maybe is something at Virtual World..
and /exit
if(strcmp(cmdtext, "/exit", true) == 0)
{
if(PlayerInfo[playerid][pMember] >= 0 || PlayerInfo[playerid][pLeader] >= 0)
{
if PlayerToPoint(5,playerid,744.7842,1437.1365,1102.7 031)
*then
{
SetPlayerPos(playerid,-2522.0139,1215.7468,37.4283);
SetPlayerInterior(playerid,0);
return 1;
}
}
}


Re: Cars Problem - blackwave - 17.12.2010

To the /exit code:
Just add:
pawn Код:
SetPlayerVirtualWorld(playerid, 0);
...