[HELP] Spawn vehicle deletes old vehicle but deletes also all other players v's
#1

As the title said, it will delete all others players spawned cars so only on can drive a spawned car but i want it so that everyone can drive its owned spawned car.
pawn Code:
if (strcmp(cmd, "/spawncar", true) ==0 )
    {
        DestroyStreamVehicle(aaa[playerid]);
        GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
        aaa[playerid]=CreateStreamVehicle(496,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,-1);
        PutPlayerInStreamVehicle(playerid,aaa[playerid], 0);
        colori = PlayerInfo[playerid][pCol1];
        colorii = PlayerInfo[playerid][pCol2];
        new car = GetPlayerStreamVehicleID(playerid);
        ChangeStreamVehicleColor(car, colori, colorii);// HIER MOET JE ZIJN !!!
        return 1;
        }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)