04.08.2010, 23:55
Ta aн, n testei....
Se funfar, fala
pawn Код:
if (strcmp(cmd, "/rg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
if (PoderosoInfo[playerid][PAbriuRG] = 0)
{
ShowStats(playerid,playerid);
PoderosoInfo[playerid][PAbriuRG] = 1
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abre sua carteira e confere o Rg.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if (PoderosoInfo[playerid][PAbriuRG] = 1)
{
TextDrawDestroy(playerid,LRGBox[playerid]);
TextDrawDestroy(playerid,LRGBox2[playerid]);
TextDrawDestroy(playerid,LRGBox3[playerid]);
TextDrawDestroy(playerid,LRGBox4[playerid]);
TextDrawDestroy(playerid,LRGBox5[playerid]);
TextDrawDestroy(playerid,LRGBox6[playerid]);
TextDrawDestroy(playerid,LRGBox7[playerid]);
TextDrawDestroy(playerid,LRGBox8[playerid]);
TextDrawDestroy(playerid,NickRGBox[playerid]);
PoderosoInfo[playerid][PAbriuRG] = 0
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Fechou sua carteira.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nao esta logado !");
}
} return 1;
}