[FilterScript] [FS] Phone System v0.1
#1

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.
Reply
#2

looks nice, cool for RP servers
Reply
#3

yeah good For Roleplay servers may they will use your Fs : P
Reply
#4

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;
#
}"
Reply
#5

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]
Reply
#6

HAHA cool
maybe i will use it
Reply
#7

Can you make it that you get a phonenummer, i need it for gf
Reply
#8

No, it will be too unreasonably complicated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)