18.08.2009, 09:54
Quote:
Originally Posted by DauerDicht
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; # }" |
you just use /pm [id] [text]