Clear chat command text
#2

Use

pawn Код:
// Put this in your script to avoid "undefined name" error..
new name[MAX_PLAYER_NAME], string[23 + MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));

// This is for message you want
format(string, sizeof(string), "Administrator %s used that cmd", name);
SendClientMessageToAll(0xFFFFFF,string)
Your command should look like this:
pawn Код:
COMMAND: oc(playerid,params[])
{
SendAdminText(playerid, "/oc", params);
if (APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] > 1)
{
for(new i = 0; i < 50; i++){
format(string, sizeof(string), "Administrator %s used that cmd", name);
SendClientMessageToAll(0xFFFFFF,string)
}
return 1;
}

return 0;
}
Rep če sam ti pomagao haha :P
Reply


Messages In This Thread
Clear chat command text - by NexySamp - 13.06.2015, 19:37
Re: Clear chat command text - by Lajko1 - 13.06.2015, 19:43
Re: Clear chat command text - by NexySamp - 13.06.2015, 19:51
Re: Clear chat command text - by Lajko1 - 13.06.2015, 19:53
Re: Clear chat command text - by NexySamp - 13.06.2015, 19:58
Re: Clear chat command text - by Lajko1 - 13.06.2015, 20:00
Re: Clear chat command text - by NexySamp - 13.06.2015, 20:04
Re: Clear chat command text - by Lajko1 - 13.06.2015, 20:06
Re: Clear chat command text - by DarkLored - 13.06.2015, 20:07
Re: Clear chat command text - by NexySamp - 13.06.2015, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)