CMD:sms
#8

Quote:
Originally Posted by JesterlJoker
Посмотреть сообщение
Glad to be of help then.
My question is

How to SCM if no phone number is avaible? (if i type 221 but no player with number 221 is online)

PHP код:
CMD:sms(playeridparams[])
{
    new 
string[110], string2[110], name[MAX_PLAYER_NAME], numbertext[80];
    
GetPlayerName(playeridnamesizeof(name));
    if(
sscanf(params"is[80]"numbertext)) return SendClientMessage(playerid0xFFFFFFFF"/sms [number] [text]");
    if(
strlen(text) > 80) return SendClientMessage(playerid0xFFFFFFFF"No more than 80 characters!");
    
format(stringsizeof(string), ""COL_SMS" SMS: %s, | Sender: %d"textnumber);
    
format(string2sizeof(string2), ""COL_SMS" SMS: %s, | Sent to: %d"textnumber);
    foreach(new 
iPlayer)
    {
        if(
pInfo[i][Telefon] == number)
        {
            
SendClientMessage(i,-1string2);
            
SendClientMessage(i,-1string);
            break;
        }
    }
    return 
true;

Reply


Messages In This Thread
CMD:sms - by Zeus666 - 21.04.2018, 09:09
Re: CMD:sms - by std - 21.04.2018, 14:30
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:21
Re: CMD:sms - by Zeus666 - 21.04.2018, 17:46
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:51
Re: CMD:sms - by Zeus666 - 21.04.2018, 17:55
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:59
Re: CMD:sms - by Zeus666 - 21.04.2018, 18:11
Re: CMD:sms - by ItsRobinson - 21.04.2018, 18:15
Re: CMD:sms - by Zeus666 - 21.04.2018, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)