Don't respawn cars
#1

Hello, I have this code:
pawn Код:
new infernus;
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            infernus = CreateVehicle(411, x, y, z, 82.2873, 0, 1,60000);
            PutPlayerInVehicle(playerid, infernus, 0);
And I want to do when vehicle "infernus" destroy it's doesn't respawn.
Reply
#2

use this
pawn Код:
public OnVehicleSpawn(vehicleid)
{
if(vehicleid==infernus)DestroyVehicle(infernus);
return 1;
}
Reply
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
use this
pawn Код:
public OnVehicleSpawn(vehicleid)
{
if(vehicleid==infernus)DestroyVehicle(infernus);
return 1;
}
Not working.
Reply
#4

Код:
infernus = CreateVehicle(411, x, y, z, 82.2873, 0, 1,-1);
EDIT:
Read wiki before scripting
https://sampwiki.blast.hk/wiki/CreateVehicle
and if it worked plz say here and +rep me :3
Reply
#5

Quote:
Originally Posted by superrobot48
Посмотреть сообщение
Код:
infernus = CreateVehicle(411, x, y, z, 82.2873, 0, 1,-1);
EDIT:
Read wiki before scripting
https://sampwiki.blast.hk/wiki/CreateVehicle
and if it worked plz say here and +rep me :3
Still not working :/
Reply
#6

did u try destroying the vehicle? and did u add it in a timer?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)