[Ajuda] FakeDeath
#8

pawn Код:
if(strcmp(cmd, "/fakedeath", true) == 0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 5){
new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index), tmp3 = strtok(params,Index);
if(!strlen(tmp) || !strlen(tmp2) || !strlen(tmp3)) return SendClientMessage(playerid, Vermelho, "USAGE: /fakedeath [ID do Player1] [ID do Player2] [ID da Arma]");
new killer = strval(tmp), killee = strval(tmp2), weap = strval(tmp3);
if(!IsValidWeapon(weap)) return SendClientMessage(playerid,Velho,"Weapon Id is never used");
if(PlayerInfo[killer][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,Velho,"You cannot use this command on this admin");
if(PlayerInfo[killee][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,Velho,"You cannot use this command on this admin");
return 1;
}
}
Reply


Messages In This Thread
FakeDeath - by Arthenry - 25.07.2012, 19:54
Re: FakeDeath - by Kuddy - 25.07.2012, 20:10
Re: FakeDeath - by Arthenry - 25.07.2012, 20:18
Re: FakeDeath - by Kuddy - 25.07.2012, 20:28
Re: FakeDeath - by Arthenry - 25.07.2012, 20:47
Re: FakeDeath - by ShutDown_ - 25.07.2012, 22:08
Re: FakeDeath - by Arthenry - 25.07.2012, 22:15
Re: FakeDeath - by ShutDown_ - 26.07.2012, 01:20
Re: FakeDeath - by Victor' - 26.07.2012, 01:26

Forum Jump:


Users browsing this thread: 1 Guest(s)