SA-MP Forums Archive
Virtualworld 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)
+--- Thread: Virtualworld problem. (/showthread.php?tid=362491)



Virtualworld problem. - KingyKings - 24.07.2012

Quote:

if(strcmp(cmd, "/maddogdm", true) == 0)
{

SetPlayerVirtualWorld(playerid, 5);
SendClientMessage(playerid, COLOR_RED, "------------Mad Dogs DM------------");
SendClientMessage(playerid, COLOR_GREEN, "Welcome to Maddogdm");
SendClientMessage(playerid, COLOR_RED, "----------------------------");
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
return 1;
}

It doesn't take me to madd dogs mansion inside...

+1 rep for help.


Re: Virtualworld problem. - Akira297 - 24.07.2012

Код:
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
Replace that- ^ ;

With this -V

Код:
SetPlayerPos(playerid, 1299.14,-794.77,1084.00);



Re: Virtualworld problem. - RedJohn - 24.07.2012

You could try:
pawn Код:
if(strcmp(cmd, "/maddogdm", true) == 0)
{
    SetPlayerInterior(playerid, 5);
    SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
    SendClientMessage(playerid, COLOR_RED, "------------Mad Dogs DM------------");
    SendClientMessage(playerid, COLOR_GREEN, "Welcome to Maddogdm");
    SendClientMessage(playerid, COLOR_RED, "----------------------------");
    return 1;
}