21.06.2010, 18:53
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;
}