[FS] Phone System v0.1 -
NtCat - 18.08.2009
Hi.
This FS will add possibility of buying one of three models of mobile phone. You canґt send and receive PMs without it. But phone battery is slowly running down. Then you have to charge it by picking up a pickup (you can set coords of all pickups in the code, you can use 2 pickups for buying and 2 for charging).
Download: http://pawn.pastebin.com/f7f0aec56
Hope you like this FS and waiting for your comments.
Re: [FS] Phone System v0.1 -
[RO]Briggy - 18.08.2009
looks nice, cool for RP servers
Re: [FS] Phone System v0.1 -
Imran.Abbas - 18.08.2009
yeah good For Roleplay servers may they will use your Fs : P
Re: [FS] Phone System v0.1 -
DauerDicht - 18.08.2009
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;
#
}"
Re: [FS] Phone System v0.1 -
[RO]Briggy - 18.08.2009
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;
#
}"
|
there is no command like /call or /sms
you just use /pm [id] [text]
Re: [FS] Phone System v0.1 -
nuriel8833 - 18.08.2009
HAHA cool
maybe i will use it
Re: [FS] Phone System v0.1 -
DauerDicht - 18.08.2009
Can you make it that you get a phonenummer, i need it for gf
Re: [FS] Phone System v0.1 -
NtCat - 18.08.2009
No, it will be too unreasonably complicated.