05.03.2017, 16:10
(
Последний раз редактировалось IlanZ; 06.03.2017 в 16:40.
)
PHP код:
CMD:duvida(playerid, params[])
{
new duvidatext[150], string[200], nomegay[24];
if(sscanf(params, "s[150]", duvidatext)) return 1;
GetPlayerName(playerid, nomegay, 24);
format(string, sizeof(string), "Duvida de %s: %s", nomegay, duvidatext);
MensagemAdmins(string);
SendClientMessage(playerid, -1, "Duvida enviada com sucesso");
return 1;
}
CMD:pm(playerid, params[])
{
new text[100], string[124], id, nomegay[24];
if(VARIAVELADMIN) return 1;
if(sscanf(params,"s[100]", text)) return 1;
GetPlayerName(playerid, nomegay, 24);
format(string, sizeof(string), "PM de %s: %s",nomegay, text);
SendClientMessage(id, -1, string);
SendClientMessage(playerid, -1, "Pm enviado com sucesso");
return 1;
}
public MensagemAdmins(const string[]){
for(new i = 0; i < MAX_PLAYERS ; ++i)
{
if(IsPlayerConnected(i) == 1)
{
if(VARIAVELADMIN)
{
SendClientMessage(i, -1, string);
}
}
}
return 1;
}