15.02.2010, 05:34
You were heading in the right direction.
Use different virtual worlds for each of the different locations.
Modify OnPlayerEnterStreamedCheckpoint
add in a check for players virtual world, to know which one of the ammunations they are in, and return them accordingly.
ex. for #2
Use different virtual worlds for each of the different locations.
Modify OnPlayerEnterStreamedCheckpoint
add in a check for players virtual world, to know which one of the ammunations they are in, and return them accordingly.
ex. for #2
pawn Код:
stock OnPlayerEnterStreamedCheckpoint(playerid, CPiD)
{
if(CPiD == CP1)//Regular player Entrance LV
if(GetPlayerScore(playerid) == 99) return SendClientMessage(playerid,red,"You Do Not Have Enough Score To Enter To The Regular Player Club");{
SetPlayerInterior(playerid, 12);
SetPlayerVirtualWorld(playerid, 1); //might as well align the CP1 with VW1 etc
SetPlayerPos(playerid, 2324.4096,-1146.4459,1050.7100);
}
//Then wherever your return checkpoint is, guessing thats maybe CP2?
if(CPid == CP2) //The return checkpoint inside of ammunation
{
if(GetPlayerVirtualWorld(playerid) == 1)
{
//return the player to Regular player Entrance LV
//remember to set their virtual world back to 0 again
}
}
return 1;
}