20.03.2012, 07:41
(
Последний раз редактировалось RenSoprano; 21.03.2012 в 19:41.
Причина: DELETED
)
DELETED
PlayerInfo[playa][pAGuns][GetWeaponSlot(gun)] = gun; // HERE IS ERROR THIS IS LINE 1727
CMD:giveweapon(playerid,params[])
{
new pAdmin[MAX_PLAYERS];
if(pAdmin[playerid] <= 4 && !IsPlayerAdmin(playerid)) // If they are not RCON admin
{
// Then it sends this message
SendClientMessage(playerid,-1,"You are not authorised to use this command.");
return 1;
}
new
weaponid,
targetid,
ammo;
if(sscanf(params,"uii",targetid,weaponid,ammo))
{
// If they typed the command wrong then show them this
SendClientMessage(playerid,-1,"USAGE: /giveweapon [playerid] [weaponid] [ammo]");
return 1;
}
else
{
GivePlayerWeapon(targetid,weaponid,ammo);
return 1;
}
}
|
Код:
CMD:giveweapon(playerid,params[])
{
new pAdmin[MAX_PLAYERS];
if(pAdmin[playerid] <= 4 && !IsPlayerAdmin(playerid)) // If they are not RCON admin
{
// Then it sends this message
SendClientMessage(playerid,-1,"You are not authorised to use this command.");
return 1;
}
new
weaponid,
targetid,
ammo;
if(sscanf(params,"uii",targetid,weaponid,ammo))
{
// If they typed the command wrong then show them this
SendClientMessage(playerid,-1,"USAGE: /giveweapon [playerid] [weaponid] [ammo]");
return 1;
}
else
{
GivePlayerWeapon(targetid,weaponid,ammo);
return 1;
}
}
|