05.07.2012, 15:17
pawn Код:
//-------------------------------[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;
}