Need a Hand with Cellphone System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need a Hand with Cellphone System (
/showthread.php?tid=239901)
Need a Hand with Cellphone System -
und3rcore - 14.03.2011
Hello SA-MP Forums, i have a problem and i want it solved if possible !
So here's the thing..i'm using a Godfather Script and i want to make the cellphone system somehow a bit advanced.
Recently now i made a Command called /vipchangenumber and it shows up a dialog which tells you to chose what Phone Number you want to Have for FREE.
The PROBLEM: If i get number 1337 and someone already has it we both can't use /call or /sms.
I want to make a system that tells you if 1337 number is ALREADY taken by someone then you can't set it for your self.
Is that possible ? If yes how ?
Much Appreciated & Thanks,
Und3rcore
Re: Need a Hand with Cellphone System -
Ricop522 - 14.03.2011
pawn Код:
for (new i=0; i < MAX_PLAYERS; ++i)
{
if(yoursave[i][number] == strval(inputtext)
{
SendClientMessage(..."Anyone have this number !!");
return 1;
}
}
Try this =D
Or make anything to save
Phonenumbers/%d.number
Re: Need a Hand with Cellphone System -
und3rcore - 14.03.2011
Alright, i'll try it and tell you. Thanks in advance
Re: Need a Hand with Cellphone System -
und3rcore - 14.03.2011
Quote:
Originally Posted by Ricop522
pawn Код:
for (new i=0; i < MAX_PLAYERS; ++i) { if(yoursave[i][number] == strval(inputtext) { SendClientMessage(..."Anyone have this number !!"); return 1; } }
Try this =D
Or make anything to save
Phonenumbers/%d.number
|
Sorry i tried it and it didn't work. Here is the OnDialogResponce Code:
http://pastebin.com/7drW87RH
Re: Need a Hand with Cellphone System -
und3rcore - 15.03.2011
Bump ! I need some help with this ! If it's not possible to-do then it's okay