13.04.2012, 13:52
how to create when a player is watching his stats and when he close the dialog to show * %s his ..... is ..... to his pocket" in purple mode....
Код:
if (strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
GetPlayerNameEx(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s gleda svoju iskaznicu.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Niste prijavljeni!");
}
}
return 1;
}

