02.10.2012, 22:09
pawn Код:
format(string, sizeof(string), "[ADMIN]: %s Deu Arma A Todos Os Players, Arma ID:%d Muniзгo:%d", Name, weaponid, muni);
SendClientMessageToAll(-1, string);
Ajuda ai ?
format(string, sizeof(string), "[ADMIN]: %s Deu Arma A Todos Os Players, Arma ID:%d Muniзгo:%d", Name, weaponid, muni);
SendClientMessageToAll(-1, string);
CMD:armatodos(playerid, params[])
{
if(PlayerInfo[playerid][Admin] >= 1 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[ERRO]:Vocк Nгo Tem Permissгo Para Usar Esse Comando Apenas Admin 1+ !.");
new weaponid,string[150],muni,Name[24];
GetPlayerName(playerid, Name, sizeof(Name));
if(sscanf(params,"dd",weaponid,muni )) return SendClientMessage(playerid, -1,"[USO]: /armatodos [ID Arma] [Muniзгo]");
if(1 > weaponid > 46) return SendClientMessage(playerid, -1,"[ERRO]: O id das armas sгo somente de 1 a 46");
if(weaponid == 38||weaponid == 35||weaponid == 36||weaponid == 44||weaponid == 45) return SendClientMessage(playerid,-1,""VERMELHO"[ERRO]:"VERDE" Essa Arma Nгo й Adequada Para Players!");
for(new i=0;i<MAX_PLAYERS;i++)
{
GivePlayerWeapon(i,weaponid,muni);
format(string, sizeof(string), "[ADMIN]: %s Deu Arma A Todos Os Players, Arma ID:%d Muniзгo:%d", Name, weaponid, muni);
SendClientMessageToAll(-1, string);
}
return 1;
}
CMD:armatodos(playerid, params[])
{
if(PlayerInfo[playerid][Admin] >= 1 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[ERRO]:Vocк Nгo Tem Permissгo Para Usar Esse Comando Apenas Admin 1+ !.");
new weaponid,string[150],muni,Name[24];
GetPlayerName(playerid, Name, sizeof(Name));
if(sscanf(params,"dd",weaponid,muni )) return SendClientMessage(playerid, -1,"[USO]: /armatodos [ID Arma] [Muniзгo]");
if(1 > weaponid > 46) return SendClientMessage(playerid, -1,"[ERRO]: O id das armas sгo somente de 1 a 46");
if(weaponid == 38||weaponid == 35||weaponid == 36||weaponid == 44||weaponid == 45) return SendClientMessage(playerid,-1,""VERMELHO"[ERRO]:"VERDE" Essa Arma Nгo й Adequada Para Players!");
for(new i=0;i<MAX_PLAYERS;i++)
{
GivePlayerWeapon(i,weaponid,muni);
}
format(string, sizeof(string), "[ADMIN]: %s Deu Arma A Todos Os Players, Arma ID:%d Muniзгo:%d", Name, weaponid, muni);
SendClientMessageToAll(-1, string);
return 1;
}