07.05.2013, 11:41
I've tested this and in the first vieuw it seems to work but when I tested it with 3 players I came to the consulsion that when you type /nos it only gives nos on playerid always. I guess this is becouse of the targetid in AddVehicleComponent, now when a playerid is doing /nos it will return targetid 0 for some reason.
Do anybody knows a solution for this I think I need a switch when a player does not entered a targetid is needs to do:
"AddVehicleComponent(GetPlayerVehicleID(player id), 1010);"
and when a player does give a targetid it gives
"AddVehicleComponent(GetPlayerVehicleID(target id), 1010);"
Anyone?
Kind regarts Jordy
Код:
AddVehicleComponent(GetPlayerVehicleID(targetid), 1010);
"AddVehicleComponent(GetPlayerVehicleID(player id), 1010);"
and when a player does give a targetid it gives
"AddVehicleComponent(GetPlayerVehicleID(target id), 1010);"
Anyone?
Kind regarts Jordy