20.11.2016, 18:34
Ola Galera do forum queria pedir ajuda de vocкs para criar 2 cmds um de /setkills e de /setdeaths pros admins level 8
command(setkills, playerid, params[])
{
new jogador, kills;
if(@admin[playerid][level] < 8)
{
if(sscanf(params, "ud", jogador, kills)) return SendClientMessage(playerid, -1, "[!] Syntax error.");
SetPlayerKill(jogador, kill); //altere
}
return 1;
}
command(setdeaths, playerid, params[])
{
new jogador, death;
if(@admin[playerid][level] < 8)
{
if(sscanf(params, "ud", jogador, death)) return SendClientMessage(playerid, -1, "[!] Syntax error.");
SetPlayerDeath(jogador, death); //altere
}
return 1;
}
dcmd_setkills(playerid,params[]) {
Код:
dcmd_setkills(playerid,params[]) { |
dcmd_setkills(playerid, params[])
{
new jogador, kills;
if(@admin[playerid][level] < 8)
{
if(sscanf(params, "ud", jogador, kills)) return SendClientMessage(playerid, -1, "[!] Syntax error.");
SetPlayerKill(jogador, kill); //altere
}
return 1;
}
dcmd_setdeaths(playerid, params[])
{
new jogador, death;
if(@admin[playerid][level] < 8)
{
if(sscanf(params, "ud", jogador, death)) return SendClientMessage(playerid, -1, "[!] Syntax error.");
SetPlayerDeath(jogador, death); //altere
}
return 1;
}
error 017: undefined symbol "@admin" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zeroF: fatal error 107: too many error messages on one line