[Command Help] sscanff optional user + zcmd
#4

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.

Код:
AddVehicleComponent(GetPlayerVehicleID(targetid), 1010);
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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)