Teleport and car problem
#1

Hello guys.I have made a command /vhouse.When you type it, it teleports you to Madd Dog's Mansion.I have created a checkpoint too, so you can leave the mansion.The problem is that, when I leave the mansion all cars disappear from their spawn position and they spawn at the road (street).

/vhouse command:

pawn Код:
CMD:vhouse(playerid, params[])
{
    new string[128], name[24];
    if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid,0xFF0000AA, "You must be Platinum VIP to use this command");
    if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
    else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
    else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
    SetPlayerPos(playerid, 1270.0016,-777.6048,1091.9063);
    SetPlayerInterior(playerid, 5);
    RemovePlayerFromVehicle(playerid);
    GameTextForPlayer(playerid, "~g~Welcome To VIP House", 5000, 6);
    SendClientMessage(playerid, -1, "Welcome to VIP House");
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s %s has teleported to VIP House", vrank, name);
    SendToVip(0x32CD32AA, string);
    return 1;
}
At "OnPlayerSpawn", I have this:

pawn Код:
SetPlayerCheckpoint(playerid,1261.1808,-785.3730,1091.9063,4);
and at "OnPlayerEnterCheckPoint",I have this:

pawn Код:
SetPlayerPos(playerid, 1258.6992,-785.3705,92.0302);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
Reply
#2

This is something that can't be solved server side since this is purely a client problem. The cars spawn faster than the the environment. The cars fall through the ground into and the void. When a vehicle falls into the void the game respawns it on the nearest node (path for cars).
Reply
#3

oh, ok thanks for the info
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
This is something that can't be solved server side since this is purely a client problem. The cars spawn faster than the the environment. The cars fall through the ground into and the void. When a vehicle falls into the void the game respawns it on the nearest node (path for cars).
Congratz, you are godfather after this post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)