#include <rSI\r_health>
CMD:god(playerid, params[])
{
if(GodMode[playerid] == 0)
{
EnableGod(playerid);
GodMode[playerid] = 1;
SendClientMessage(playerid, 0x10F441AA, "You have Enabled your God Mode.");
}
else if(GodMode[playerid] == 1)
{
DisableGod(playerid);
GodMode[playerid] = 0;
SendClientMessage(playerid, 0x10F441AA, "You have Disabled your God Mode.");
}
return 1;
}
#include <rSI\r_health>
CMD:god(playerid, params[])
{
if(GodMode[playerid] == 0)
{
EnableGod(playerid);
ResetPlayerWeapons(playerid);
GodMode[playerid] = 1;
SendClientMessage(playerid, 0x10F441AA, "You have Enabled your God Mode.");
}
else if(GodMode[playerid] == 1)
{
DisableGod(playerid);
GodMode[playerid] = 0;
SendClientMessage(playerid, 0x10F441AA, "You have Disabled your God Mode.");
}
return 1;
}
try this
pawn Код:
|
#include <rSI\r_health>
CMD:god(playerid, params[])
{
new weapons[13][2];
if(GodMode[playerid] == 0)
{
EnableGod(playerid);
GetPlayerWeaponData(playerid, weapons[i][0], weapons[i][1]);
GodMode[playerid] = 1;
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, 0x10F441AA, "You have Enabled your God Mode.");
}
else if(GodMode[playerid] == 1)
{
DisableGod(playerid);
GivePlayerWeapons(playerid, weapons[i][0], weapons[i][1]);
GodMode[playerid] = 0;
SendClientMessage(playerid, 0x10F441AA, "You have Disabled your God Mode.");
}
return 1;
}
C:\Users\xxx\Desktop\Samp Script\.pwn , .amx\SupremeStuntWorld.pwn(604) : error 017: undefined symbol "i"
C:\Users\xxx\Desktop\Samp Script\.pwn , .amx\SupremeStuntWorld.pwn(612) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
#include <rSI\r_health>
new weapons[13][2];
CMD:god(playerid, params[])
{
new weapons[13][2];
if(GodMode[playerid] == 0)
{
EnableGod(playerid);
for (new i = 0; i <= 12; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
GodMode[playerid] = 1;
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, 0x10F441AA, "You have Enabled your God Mode.");
}
else if(GodMode[playerid] == 1)
{
DisableGod(playerid);
GodMode[playerid] = 0;
SendClientMessage(playerid, 0x10F441AA, "You have Disabled your God Mode.");
for (new i = 0; i <= 12; i++)
{
GivePlayerWeapon(playerid, weapons[i][0], weapons[i][1]);
}
}
return 1;
}