How can I disable exiting a vehicle?
#7

I put this under OnPlayerExitVehicle:

pawn Код:
if(IsPlayerInVehicle(playerid, 571)) // 571 = KART ID
{
         new rand3 = random(sizeof(RandomSpawn3));
         SetPlayerPos(playerid, RandomSpawn3[rand3][0], RandomSpawn3[rand3][1],RandomSpawn3[rand3]             [2],RandomSpawn3[rand3][3],RandomSpawn3[rand3][4],RandomSpawn3[rand3][5],RandomSpawn3[rand3][6],RandomSpawn3[rand3][7]);
         return 1;
}
The random spawns are for my /kartdm teleport, so if they exit the kart, it will respawn them at a random spot for my command, but it doesn't work for some reason

anyone know why?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)