03.09.2012, 18:08
My problem is that. When I'm inside any vehicle and teleport to some of my map, Let say /ls then the vehicle automatically destroyed and it says "MyName has Teleported to Los Santos"
but I'm still in my parkour map. Any idea?
but I'm still in my parkour map. Any idea?
pawn Код:
cmd:parkour(playerid,params[])
{
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/parkour) {00CCFF}%s {6666FF}has Teleported to Parkour 1",pName);
SendClientMessageToAll(0xFFFFFFFF, string);
SetPlayerPos(playerid, -2245.6714,-1718.3846,480.3323);
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Parkour 1",2000,3);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 17);
SetPlayerInterior(playerid, 0);
DestroyVehicle(GetPlayerVehicleID(playerid));
return 1;
}