Y ain't this working
#1

Код:
if(text[0] == '.' && PlayerInfo[playerid][PlayerAdmin]>=1){ if(PlayerInfo[playerid][PlayerAdmin] <= 1) return SendClientMessage(playerid,COLOR_RED, "You Cant Use This Command !!!"); new string[256]; new Name[MAX_PLAYER_NAME];GetPlayerName(playerid, Name, sizeof(Name)); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && PlayerInfo[i][PlayerAdmin] >= 1) { format(string,sizeof(string),"[Achat]%s: "WHITE"%s",Name,string); SendClientMessage(i,COLOR_BRIGHTBLUE,string); } } }
this is under OnPlayerText callback
Reply
#2

Considering it has this:

pawn Код:
if(text[0] == '.'
Wouldn't this mean that you only typed a period? Not certain, never tried to do anything like this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)