/FPK
/HEALALL
/CONTACT
Toate acestea se adauga in GM-ul vostru! Aceste comenzi le puteti adauga oriunde apoi dati COMPILE!
- Cod:
//-----------------------------------[/fpk]-Alin--------------------------------//
if(strcmp(cmd, "/fpk", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fpk [id/name] [PKer]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fpk [id/name] [PKer]");
return 1;
}
format(string, sizeof(string), "[AdminCMD] : %s Was AdminPKed by Admin %s - PKer: %s", giveplayer, sendername, (result));
SendClientMessageToAll(0x5EFB6EFF, string);
format(string, sizeof(string), "You were AdminPKed by Admin %s, you are kicked out of your faction.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pMember]=0;
PlayerInfo[giveplayerid][pLeader]=0;
PlayerInfo[giveplayerid][pRank] = 0;
PlayerInfo[giveplayerid][pChar] = 0;
new rand = random(sizeof(CIV));
SetSpawnInfo(giveplayerid, gTeam[giveplayerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[giveplayerid][pModel] = CIV[rand];
MedicBill[giveplayerid] = 0;
SpawnPlayer(giveplayerid);
return 1;
}
}
}
else
{
format(string, sizeof(string), " %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
/HEALALL
- Cod:
//-----------------------------------healall-----------------------------------------------------
if(strcmp(cmd, "/healall", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
format(string, sizeof(string), "Administratorul %s a dat viata la toti.", sendername);
SendClientMessageToAll(0xFF7171FF, string);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
SetPlayerHealth(i, 100);
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Tu nu ai permisiunea de a folosi aceasta comanda!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Trebuie sa fi logat pentru a folosi aceasta comanda!");
}
return 1;
}
/CONTACT
- Cod:
//----------------------------------[HELP]-----------------------------------------------
if(strcmp(cmd, "/contact", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE,"Owner 1: Nume - Y!M");
SendClientMessage(playerid, COLOR_WHITE,"Owner 2: Nume - Y!M");
}
return 1;
}
Toate acestea se adauga in GM-ul vostru! Aceste comenzi le puteti adauga oriunde apoi dati COMPILE!