CMD:afk(playerid, params[])
{
new string[64], motivo[64];
if(!AFK[playerid])
{
if(sscanf(params, "us[64]", motivo))
{
SendClientMessage(playerid, -1, "Digite: /afk [motivo]");
return 1;
}
{
format(string, sizeof string, "[AFK]O Jogador (%s) Estб AFK, Motivo: %s", PlayerName(playerid), motivo);
SendClientMessageToAll(-1, string);
}
SetPlayerPos(playerid, 322.197998,302.497985,999.148437);
SetPlayerInterior(playerid, 5);
SetPlayerHealth(playerid, 9999);
ResetPlayerWeapons(playerid);
AFK[playerid] = true;
}
CMD:afk(playerid, params[]) { new string[64], motivo[64]; if(!AFK[playerid]) { if(sscanf(params, "us[64]", motivo)) { SendClientMessage(playerid, -1, "Digite: /afk [motivo]"); return 1; } { format(string, sizeof string, "[AFK]O Jogador (%s) Estб AFK, Motivo: %s", PlayerName(playerid), motivo); SendClientMessageToAll(-1, string); } SetPlayerPos(playerid, 322.197998,302.497985,999.148437); SetPlayerInterior(playerid, 5); SetPlayerHealth(playerid, 9999); ResetPlayerWeapons(playerid); AFK[playerid] = true; } |
CMD:afk(playerid, params[]) { new string[64], motivo[64]; if(!AFK[playerid]) { if(sscanf(params, "s", motivo)) { SendClientMessage(playerid, -1, "Digite: /afk [motivo]"); return 1; } { format(string, sizeof string, "[AFK]O Jogador (%s) Estб AFK, Motivo: %s", PlayerName(playerid), motivo); SendClientMessageToAll(-1, string); } SetPlayerPos(playerid, 322.197998,302.497985,999.148437); SetPlayerInterior(playerid, 5); SetPlayerHealth(playerid, 9999); ResetPlayerWeapons(playerid); AFK[playerid] = true; } |
CMD:afk(playerid, params[])
{
new string[64], motivo[64];
if(!AFK[playerid])
{
if(isnull(params)) return SendClientMessage(playerid, -1, "Digite: /afk [motivo]");
format(string, sizeof string, "[AFK]O Jogador (%s) Estб AFK, Motivo: %s", PlayerName(playerid), params);
SendClientMessageToAll(-1, string);
SetPlayerPos(playerid, 322.197998,302.497985,999.148437);
SetPlayerInterior(playerid, 5);
SetPlayerHealth(playerid, 9999);
ResetPlayerWeapons(playerid);
AFK[playerid] = true;
}
return 1;
}