Codigo RG
Codigo RG
new PlayerText:Nomep[MAX_PLAYERS];
new PlayerText:Nivelp[MAX_PLAYERS];
new PlayerText:Skinp[MAX_PLAYERS];
new PlayerText:Dinheirop[MAX_PLAYERS];
new bool:OlhandoRG[MAX_PLAYERS];
public OnGameModeInit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
public OnPlayerUpdate(playerid)
{
skin = GetPlayerSkin(playerid);
CMD:rg(playerid)
{
if(OlhandoRG[playerid] == true) return SumirRG(playerid), OlhandoRG[playerid] =
false;
skin = GetPlayerSkin(playerid);
TextDrawShowForPlayer(playerid, Text_RG[0]);
PlayerTextDrawShow(playerid, Nomep[playerid]);
PlayerTextDrawShow(playerid, Nivelp[playerid]);
PlayerTextDrawShow(playerid, Skinp[playerid]);
PlayerTextDrawShow(playerid, Dinheirop[playerid]);
OlhandoRG[playerid] = true;
return 1;
}
stock SumirRG(playerid)
{
TextDrawHideForPlayer(playerid, Text_RG[0]);
PlayerTextDrawHide(playerid, Nomep[playerid]);
PlayerTextDrawHide(playerid, Nivelp[playerid]);
PlayerTextDrawHide(playerid, Skinp[playerid]);
PlayerTextDrawHide(playerid, Dinheirop[playerid]);
return 1;
}