18.08.2009, 09:08
whats the command to send a sms or call?
"#
public OnPlayerPrivmsg(playerid, recieverid, text[])
#
{
#
if (Phone[playerid] == 0) return SendClientMessage(playerid, COL_RED, "You donґt have a mobile phone.");
#
else if (BatteryLoad[playerid] == 0.0) return SendClientMessage(playerid, COL_RED, "Your phone battery has run out of power.");
#
else if (Phone[recieverid] == 0) return SendClientMessage(playerid, COL_RED, "Sorry, that player doesnґt have a mobile phone.");
#
else if (BatteryLoad[recieverid] == 0.0) return SendClientMessage(playerid, COL_RED, "Sorry, that playerґs phone battery has run out of power.");
#
new string[300];
#
format(string, sizeof(string), "[PM to ID %d] %s", recieverid, text);
#
SendClientMessage(playerid, COL_ORANGE, string);
#
format(string, sizeof(string), "[PM from ID %d] %s", playerid, text);
#
SendClientMessage(recieverid, COL_ORANGE, string);
#
return 0;
#
}"
"#
public OnPlayerPrivmsg(playerid, recieverid, text[])
#
{
#
if (Phone[playerid] == 0) return SendClientMessage(playerid, COL_RED, "You donґt have a mobile phone.");
#
else if (BatteryLoad[playerid] == 0.0) return SendClientMessage(playerid, COL_RED, "Your phone battery has run out of power.");
#
else if (Phone[recieverid] == 0) return SendClientMessage(playerid, COL_RED, "Sorry, that player doesnґt have a mobile phone.");
#
else if (BatteryLoad[recieverid] == 0.0) return SendClientMessage(playerid, COL_RED, "Sorry, that playerґs phone battery has run out of power.");
#
new string[300];
#
format(string, sizeof(string), "[PM to ID %d] %s", recieverid, text);
#
SendClientMessage(playerid, COL_ORANGE, string);
#
format(string, sizeof(string), "[PM from ID %d] %s", playerid, text);
#
SendClientMessage(recieverid, COL_ORANGE, string);
#
return 0;
#
}"