how to set playerid
#1

hello

i have this on the top of the mode
Код:
new License;
and this is a command
Код:
	if (strcmp("/stopradio", cmdtext, true, 10) == 0)
	{
        if(License == 0) return SendClientMessage(playerid, 0xAA3333AA, "!הרדיו כבר מכובה");
        SendClientMessage(playerid,0xAA3333AA,"/radio עצרת את הרדיו , בשביל להמשיך אותו שוב רשמו");
        StopAudioStreamForPlayer(playerid);
        License = 0;
		return 1;
	}
License = 0/1 it's for all the server , how can i make it for playerid?
for any player itself.

thanks.
Reply
#2

PHP код:
new License[MAX_PLAYERS];
...
if(
License[playerid] == 1) ... 
Reply
#3

Quote:
Originally Posted by oMa37
Посмотреть сообщение
PHP код:
new License[MAX_PLAYERS];
...
if(
License[playerid] == 1) ... 
thanks bud.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)