11.03.2014, 14:09
Hello when I change something to the pawno like the infinite ammo on weapons, I type /aduty and recieve non infinite ammo weapons! But I changed in the script for infinite : 0x7FFFFFFF
I close the server, edit this and then I click save and I run the server and when i type the command it gives me weapon but not with infinite ammo!HELP!
Код:
if(strcmp(cmd, "/aduty", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPlayerHealth(playerid, 99999999);
SetPlayerArmour(playerid, 99999999);
SendClientMessage(playerid, COLOR_YELLOW, "You are now an on-duty Administrator!");
format(string, sizeof(string), "%s is now on-duty Administrator. ", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid, COLOR_WHITE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 42, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 39, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 38, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 34, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 31, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 29, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 27, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 24, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 40, 1);
GivePlayerWeapon(playerid, 10, 1);
GivePlayerWeapon(playerid, 9, 1);
}
return 1;


