Keys State Help
#3

PHP код:
new Used[MAX_PLAYERS];
if(
PRESSED(KEY_JUMP))
{
         
Used[playerid] += 1;
         if(
Used[playerid] >= 3)
         {
             new 
string[100];
             
format(stringsizeof(string), "*** %s (ID:%d) has used the JUMP KEY more than 3 times"GetName(playerid), playerid);
             
SendClientMessageToAll(-1string);
         }

You should have the stock GetName

Код:
stock GetName(playerid)
{
	new Name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
	return Name;
}
Reply


Messages In This Thread
Keys State Help - by Istrator - 29.04.2018, 15:10
Re: Keys State Help - by RedRex - 29.04.2018, 15:14
Re: Keys State Help - by Loinal - 29.04.2018, 15:16
Re: Keys State Help - by Pottus - 29.04.2018, 16:34
Re: Keys State Help - by git - 29.04.2018, 19:05
Re: Keys State Help - by Istrator - 30.04.2018, 11:43
Re: Keys State Help - by jasperschellekens - 30.04.2018, 14:21
Re: Keys State Help - by git - 30.04.2018, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)