14.06.2013, 16:00
(
Последний раз редактировалось dEcooR; 14.06.2013 в 16:57.
)
Dude i go test it now
btw what did you means with new PID?
CMD:givegun(playerid, params[])
{
new PID; //
if(sscanf(params, "i", weaponid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /givegun [Weapon ID] [ammo]");
ServerWeapon(playerid, weaponid, ammo);
return 1;
}
And by the way i found some bug .. i found that if you using setspawninfo(there you can set also weaps) and addplayerclass(also set weps) you are kicked .. cuz it setting server not you so thats sucked
btw what did you means with new PID?
CMD:givegun(playerid, params[])
{
new PID; //
if(sscanf(params, "i", weaponid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /givegun [Weapon ID] [ammo]");
ServerWeapon(playerid, weaponid, ammo);
return 1;
}
And by the way i found some bug .. i found that if you using setspawninfo(there you can set also weaps) and addplayerclass(also set weps) you are kicked .. cuz it setting server not you so thats sucked