Cars Problem
#1

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

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

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;
}
}
}
Reply
#4

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


Forum Jump:


Users browsing this thread: 2 Guest(s)