17.01.2010, 15:19
Hey,
I want to use
for a command, but only the cops may hear it.
So, I was thinking of this:
Thanks.
I want to use
Quote:
PlayerPlaySound(playerid, soundid, Float, Float:y, Float:z) |
So, I was thinking of this:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/onduty", true)) { SendClientMessage(playerid, 0xFFFFFFFF, "You are now onduty"); //then some more actions, but this is just an example PlayerPlaySound(playerid,21, 0, 0, 0); //At Playerid, how do I say only if a player is a cop, hes able to hear it? return 1; } return 0; }