06.01.2015, 19:12
First here is the first code
it work but it send fo me the client message and doesn't stop sending it

the other problem as you saw up when the player enter pickup it show to him a text draw
and the other code
But when i click lalt i make me from the gang and send for me a message but doesn't hide the text draw.
Please help !
PHP код:
else if(pickupid == mafia || pickupid == bikers || pickupid == grove || pickupid == ballas || pickupid == rifas || pickupid == tirads)
{
if(PlayerInfo[playerid][pGang] > 0)
{
SendClientMessage(playerid, COLOR_RED, "You are already belong to a gang");
}
else
{
TextDrawShowForPlayer(playerid, Text:Textdraw0);
TextDrawShowForPlayer(playerid, Text:Textdraw1);
}
}

the other problem as you saw up when the player enter pickup it show to him a text draw
and the other code
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 2176.2573,1663.2335,10.8203))
{
if(PlayerInfo[playerid][pGang] == 0)
{
SendClientMessage(playerid, COLOR_BLUE, "Now, You are part from Mafia Gang");
PlayerInfo[playerid][pGang] = 1;
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw1);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are already belong to a gang");
}
}
}
return 1;
}
Please help !