CMD:God(playerid,params[]) { if(PlayerInfo[playerid][pAdminLevel] >=3) { SetPlayerHealth(playerid,999999); SendClientMessage(playerid,COLOR_GREEN,"|**God Activated**|"); } } else return SendClientMessage(playerid,COLOR_RED," You are not allowed to use this command!"); return 1; }
else return SendClientMessage(playerid,COLOR_RED," You are not allowed to use this command!"); return 1;
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\filterscripts\SideShock.pwn(202) : error 010: invalid function or declaration C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\filterscripts\SideShock.pwn(203) : error 010: invalid function or declaration
MD:God(playerid,params[]) { if(PlayerInfo[playerid][pAdminLevel] >=3) { SetPlayerHealth(playerid,999999); SendClientMessage(playerid,COLOR_GREEN,"|**God Activated**|"); } }//and what about this one? else return SendClientMessage(playerid,COLOR_RED," You are not allowed to use this command!"); return 1; }
CMD:god(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SetPlayerHealth(playerid, 10000000);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
}
return 1;
}
something is wrong
Код:
MD:God(playerid,params[]) { if(PlayerInfo[playerid][pAdminLevel] >=3) { SetPlayerHealth(playerid,999999); SendClientMessage(playerid,COLOR_GREEN,"|**God Activated**|"); } }//and what about this one? else return SendClientMessage(playerid,COLOR_RED," You are not allowed to use this command!"); return 1; } P.S Same colors = pairs |
CMD:God(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][pAdminLevel] < 3) return SendClientMessage(playerid,COLOR_RED," You are not allowed to use this command!");
SetPlayerHealth(playerid,999999);
SendClientMessage(playerid,COLOR_GREEN,"|**God Activated**|");
return 1;
}
PHP код:
|
CMD:godcar(playerid, params[]) { if(PlayerInfo[playerid][pAdminLevel] >= 3) { if(IsPlayerInAnyVehicle(playerid)) { SetVehicleHealth(playerid, 999999); SendClientMessage(playerid,COLOR_GREEN,"**GodCar Activated**"); } else { SendClientMessage(playerid, COLOR_RED, "You are not allowed to use this command!"); } SendClientMessage(playerid, COLOR_RED, "You must be in a vehicle to use this command!"); } return 1; }
CMD:godcar(playerid, params[])
{
#pragma unused params
if(PlayerInfo[playerid][pAdminLevel] < 3) return SendClientMessage(playerid, COLOR_RED, "You are not allowed to use this command!");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You must be in a vehicle to use this command!");
SetVehicleHealth(GetPlayerVehicleID(playerid), 999999);
SendClientMessage(playerid,COLOR_GREEN,"**GodCar Activated**");
return 1;
}