how to set playerid - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to set playerid (
/showthread.php?tid=626879)
how to set playerid -
Thorlel - 21.01.2017
hello
i have this on the top of the mode
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.
Re: how to set playerid -
oMa37 - 21.01.2017
PHP код:
new License[MAX_PLAYERS];
...
if(License[playerid] == 1) ...
Re: how to set playerid -
Thorlel - 21.01.2017
Quote:
Originally Posted by oMa37
PHP код:
new License[MAX_PLAYERS];
...
if(License[playerid] == 1) ...
|
thanks bud.