//-------------------------------[Stats]--------------------------------------------------------------------------
if (strcmp(cmd, "/rg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб logado !");
}
}
return true;
}
//-------------------------------[Mostrar RG]--------------------------------------------------------------------------
if (strcmp(cmd, "/mostrarrg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /mostrarrg [ID/Nome]");
return true;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
ShowStats(giveplayerid,playerid);
format(string, sizeof(string), "* %s mostrou o seu rg para %s.",PlayerName(playerid),PlayerName(giveplayerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
return true;
}
//-------------------------------[Stats]--------------------------------------------------------------------------
if (strcmp(cmd, "/rg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (!gPlayerLogged[playerid]) return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб logado !");
ShowStats(playerid,playerid);
}
return true;
}
//-------------------------------[Mostrar RG]--------------------------------------------------------------------------
if (strcmp(cmd, "/mostrarrg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD1, "USE: /mostrarrg [ID/Nome]");
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
ShowStats(giveplayerid,playerid);
format(string, sizeof(string), "* %s mostrou o seu rg para %s.",PlayerName(playerid),PlayerName(giveplayerid) );
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
}
}
return true;
}
Pelo que sei nгo й isso
Acho que й uma stock ''ShowStats'' @Edit A galera do fуrum ta ninja LOL |