16.08.2017, 00:27
Hello everyone there a problem i dont know how to fix it can you help me??
Im create something but When i add it on OnPlayerText And HideTextdraws then add it again there a bug when i press 3 - 2 - 1
How to fix this??
Im create something but When i add it on OnPlayerText And HideTextdraws then add it again there a bug when i press 3 - 2 - 1
How to fix this??
PHP код:
public OnPlayerText(playerid, text[])
{
if(Police[1])
{
if(strval(text) == 2)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "Your armour is now 100%");
}
if(strval(text) == 4)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "Your health is now 100%");
}
if(strval(text) == 3)
{
TextDrawHideForPlayer(playerid, Textdraw11);
TextDrawHideForPlayer(playerid, Textdraw12);
TextDrawHideForPlayer(playerid, Textdraw13);
TextDrawHideForPlayer(playerid, Textdraw14);
TextDrawHideForPlayer(playerid, Textdraw15);
TextDrawHideForPlayer(playerid, Textdraw16);
TextDrawHideForPlayer(playerid, Textdraw17);
TextDrawHideForPlayer(playerid, Textdraw18);
TextDrawHideForPlayer(playerid, Textdraw19);
TextDrawHideForPlayer(playerid, Textdraw20);
TextDrawHideForPlayer(playerid, Textdraw21);
TextDrawShowForPlayer(playerid, Textdraw22);
TextDrawShowForPlayer(playerid, Textdraw23);
TextDrawShowForPlayer(playerid, Textdraw24);
TextDrawShowForPlayer(playerid, Textdraw25);
TextDrawShowForPlayer(playerid, Textdraw26);
TextDrawShowForPlayer(playerid, Textdraw27);
TextDrawShowForPlayer(playerid, Textdraw28);
TextDrawShowForPlayer(playerid, Textdraw29);
if(strval(text) == 1) return GivePlayerWeapon(playerid, 24, 100);
if(strval(text) == 2) return GivePlayerWeapon(playerid, 31, 100);
if(strval(text) == 3) return GivePlayerWeapon(playerid, 34, 50);
}
if(strval(text) == 4)
{
SendClientMessage(playerid, COLOR_GOLD, "Coming Soon");
}
}
return 1;
}