public OnPlayerText(playerid,text[])
{
if(strcmp(text,"PS",false))
{
for(new otherid=0;otherid<MAX_PLAYERS;otherid++)
{
if(IsPlayerAdmin(otherid))//change this to your admins system's enum or what ever you use
{
new Name[MAX_PLAYER_NAME];GetPlayerName(playerid,Name,sizeof(Name));
new Str[128];format(Str,128,"Player: %s Has Used: %s",Name,text);
SendClientMessage(otherid,-1,Str);
}
}
}
return 1;
}
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(12262) : warning 219: local variable "Name" shadows a variable at a preceding level D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45440) : error 010: invalid function or declaration D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45442) : error 010: invalid function or declaration D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45444) : error 010: invalid function or declaration D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45446) : error 021: symbol already defined: "GetPlayerName" D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45447) : error 021: symbol already defined: "format" D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45451) : error 054: unmatched closing brace ("}") D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45453) : warning 203: symbol is never used: "Name" D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45453) : warning 203: symbol is never used: "Str" |