25.07.2014, 19:44
While using this in game. Shows sendername each time randomly
Код:
CMD:cnn(playerid, params[])
{
new result[128];
if(PlayerInfo[playerid][pAdmin] >= 2){
if(!sscanf(params, "s[128]", result)){
format(string, sizeof(string), "~b~%s: ~w~%s",sendername,result);
foreach (Player, i)
{
GameTextForPlayer(i, string, 5000, 6);
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cnn [cnn textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
return 1;
}

