/sms command
#4

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;
    }
Reply


Messages In This Thread
/sms command - by Tadas - 27.06.2014, 11:32
Re: /sms command - by AdHaM612 - 27.06.2014, 11:40
Re: /sms command - by Noliax8 - 27.06.2014, 11:41
Re: /sms command - by Tadas - 27.06.2014, 11:41
Re: /sms command - by Noliax8 - 27.06.2014, 11:43
Re: /sms command - by Tadas - 27.06.2014, 11:48
Re: /sms command - by Noliax8 - 27.06.2014, 11:54

Forum Jump:


Users browsing this thread: 1 Guest(s)