Help Please - 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: Help Please (
/showthread.php?tid=255587)
Help Please -
Nanban - 16.05.2011
i need teleport with player vehicle anyone give me please
pawn Код:
if(strcmp(cmd, "/vgenter", true) == 0)
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
if(IsPlayerInRangeOfPoint(playerid,8.0, 1824.1476,-1537.8507,13.5469)) // VIP GARAGE ENTER
{
SetPlayerVirtualWorld(playerid, 110);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1637.3329,-1375.9287,956.5716);
SendClientMessage(playerid, 0x80008000, "Welcome to the VIP Garage !");
SendClientMessage(playerid, COLOR_YELLOW, "Type /vgexit to go Outside");
GameTextForPlayer(playerid, "~w~VIP Garage", 5000, 1);
}
return 1;
}
if(strcmp(cmd, "/vgexit", true) == 0)
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
if(IsPlayerInRangeOfPoint(playerid, 10.0,1637.3329,-1375.9287,956.5716)) //VIP GARAGE EXIT
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1824.1476,-1537.8507,13.5469);
}
return 1;
}
Respuesta: Help Please -
K9- - 16.05.2011
pawn Код:
if(strcmp(cmd, "/vgenter", true) == 0)
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
if(IsPlayerInRangeOfPoint(playerid,8.0, 1824.1476,-1537.8507,13.5469)) // VIP GARAGE ENTER
{
SetPlayerVirtualWorld(playerid, 110);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1637.3329,-1375.9287,956.5716);
SendClientMessage(playerid, 0x80008000, "Welcome to the VIP Garage !");
SendClientMessage(playerid, COLOR_YELLOW, "Type /vgexit to go Outside");
GameTextForPlayer(playerid, "~w~VIP Garage", 5000, 1);
}
else
{
SetVehiclePos(GetPlayerVehicleID(playerid),1637.3329,-1375.9287,956.5716);//The same position of SetPlayerPos
}
return 1;
}
Re: Help Please -
Nanban - 16.05.2011
not work
Re: Help Please -
alpha500delta - 16.05.2011
pawn Код:
if(strcmp(cmd, "/vgenter", true) == 0)
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
if(IsPlayerInRangeOfPoint(playerid,8.0, 1824.1476,-1537.8507,13.5469)) // VIP GARAGE ENTER
{
SetPlayerVirtualWorld(playerid, 110);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1637.3329,-1375.9287,956.5716);
SendClientMessage(playerid, 0x80008000, "Welcome to the VIP Garage !");
SendClientMessage(playerid, COLOR_YELLOW, "Type /vgexit to go Outside");
GameTextForPlayer(playerid, "~w~VIP Garage", 5000, 1);
}
else
{
SetVehiclePos(GetPlayerVehicleID(playerid),1637.3329,-1375.9287,956.5716);//The same position of SetPlayerPos
}
}
return 1;
}