27.06.2014, 11:41
Sure:
pawn Код:
CMD:sms(playerid, params[])
{
new PID;
new tekstas[50];
new str[128];
new Gavejas[MAX_PLAYER_NAME], Siuntejas[MAX_PLAYER_NAME];
GetPlayerName(playerid, Siuntejas, sizeof(Siuntejas));
GetPlayerName(PID, Gavejas, sizeof(Gavejas));
if(sscanf(params, "us", PID,tekstas)) return SendClientMessage(playerid, ZALIA, "Naudojimas: /sms [ Gavлjo Vardas ] [ Tekstas ]");
if(!IsPlayerConnected(PID))
return SendClientMessage(playerid, ORANDZINE, "Tokio юaidлjo nлra!");
format(str, sizeof(str), "[SMS] %s: %s .", Siuntejas, tekstas);
SendClientMessage(PID, 0x459466FF, str);
SendClientMessage(playerid, 0x459466FF, str);
PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
return 1;
}