14.08.2010, 09:54
Hello guys... can some one tell me how to do like /enter to enter some where i got the Co-Ordinits done ecc.. but i can't work it out and please tell me where to place them in my gamemode i am using la-rp
COMMAND:ws(playerid,params[])
{
new mes[128],str[128],playername[26];
GetPlayerName(playerid,playername,26);
if(sscanf(params,"s[128]",mes))return SendClientMessage(playerid,0xff0000FF,"Error usage /ws [message]");
{
format(str,128,"Admin message from %s: %s",playername,mes);
for(new i: i <= MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i))continue;
if(IsPlayerAdmin(i))
{
SendClientMessage(i,0xffff00FF,str);
PlayerPlaySound(i,1085,0.0,0.0,0.0);
}
}
}
return 1;
}