14.08.2013, 14:19
Hello,
i need /heal /god /slap /slapall and some more DCMD commands for admin i +REP who help me.
i need /heal /god /slap /slapall and some more DCMD commands for admin i +REP who help me.
dcmd_slap(playerid,params[])
{
new string[128];
new ID;
if(sscanf(params,"us[100]",ID))
{
SendClientMessage(playerid,COLOR_RED,"[USAGE] /slap (Player Name/ID)");
return 1;
}
if(!IsPlayerConnected(ID))
{
format(string,sizeof(string),"[ERROR] The player ID you entered is not connected to the server.");
SendClientMessage(playerid,COLOR_RED,string);
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(ID, x, y, z);
SetPlayerPos(ID, x, y, z+5);
return 1;
}
dcmd_slapall(playerid,params[])
{
#pragma unused params
new string[128];
for(new i=0; i<MAX_PLAYERS; i++)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
SetPlayerPos(i, x, y, z+5);
return 1;
}
}
dcmd_god(playerid,params[])
{
#pragma unused params
SendClientMessage(playerid,COLOR_PINK,"You are now in admin mode.");
SetPlayerColor(playerid,COLOR_RED);
GivePlayerWeapon(playerid,38,999999);
SetPlayerHealth(playerid,999999);
SetPlayerArmour(playerid,999999);
return 1;
}