|
|
|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Jul 2011
Posts: 55
Reputation: 0
|
Boas pessoal!
Estou com uma duvida meio estranha, mas eu estou a tentar fazer um script de tarifas de telemóvel para servidor RP. Mas eu sou meio novato no Pawno, e preciso de ajuda nesse script. Então é o seguinte, eu estou a tentar fazer com que a pessoa chegue na loja (essa parte está feita) e que possa escolher o tarifário. Se essa pessoa escolher por exemplo "Tarifario Xtreme" então ela pode ligar e mandar sms normalmente, MAS se ela liga para uma pessoa com o mesmo tarifário ai ela não paga nem chamadas nem sms. Tem alguma forma de fazer isso? Se tiver alguém disponível para me ajudar eu agradecia, já estive até para pagar num programador mas ele leva muito dinheiro. Deixo abaixo o código que tenho do telemóvel. Code:
if(Mobile[playerid] == 911)
{
format(string, sizeof(string), "[911 CALL:] %s(ID:%d) says: %s",GetPlayerNameEx(playerid),playerid,text);
SendFactionTypeMessage(1, COLOR_LSPD, string);
SendClientMessage(playerid,COLOR_WHITE,"Operator says: Your call has been recorded, please standby.");
Mobile[playerid] = 255;
format(string, sizeof(string), "[Phone] %s says: %s", GetPlayerNameEx(playerid), text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
TalkLog(string);
return 0;
}
if(Mobile[playerid] != 255)
{
format(string, sizeof(string), "[Phone] %s says: %s", GetPlayerNameEx(playerid), text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
TalkLog(string);
if(IsPlayerConnected(Mobile[playerid]))
{
if(Mobile[Mobile[playerid]] == playerid)
{
new Float:SpeakerX,Float:SpeakerY,Float:SpeakerZ;
GetPlayerPos(playerid,SpeakerX,SpeakerY,SpeakerZ);
if(!PlayerToPoint(20.0,Mobile[playerid],SpeakerX,SpeakerY,SpeakerZ))
{
SendClientMessage(Mobile[playerid], COLOR_GREEN,string);
SendClientMessage(playerid, COLOR_GREEN,string);
}
if(SpeakerPhone[Mobile[playerid]])
{
format(string, sizeof(string), "[Speaker] %s says: %s", GetPlayerNameEx(playerid), text);
ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED,"[ERROR:] Theres nobody on the line.");
}
return 0;
|
|
|
|
|
|
#2 |
|
Big Clucker
![]() ![]() Join Date: Jul 2011
Posts: 55
Reputation: 0
|
Esqueci de dizer que coloquei isso no código.
new Tarifario[MAX_PLAYERS]; Mas como não sabia por onde começar, ai decidi abrir um tópico para me poderem ajudar. |
|
|
|
|
|
#3 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2010
Location: Brasil - São Paulo SP
Posts: 722
Reputation: 35
|
Cara me adiciona no msn que eu lhe ajudo sem cobrar $, me adiciona ai: jimcare1@hotmail.com
Obs: Não faça 2 posts, e sim use o edit
|
|
|
|
|
|
#4 | |
|
Big Clucker
![]() ![]() Join Date: Jul 2011
Posts: 55
Reputation: 0
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
compre um telemovel novo e lige para a operadora para saber os tarifarios(so na brinca)
|
|
|
|
#6 |
|
Big Clucker
![]() ![]() Join Date: Jul 2011
Posts: 55
Reputation: 0
|
Ainda não entrei em contacto com o Jim.
Se alguém souber como me ajudar me avisa, é única coisa que falta nesse meu GM. Obrigado. |
|
|
|
|
|
#7 |
|
Big Clucker
![]() ![]() Join Date: Jul 2011
Posts: 55
Reputation: 0
|
Desculpem tantos post's seguidos.
Será que alguém me consegue ajudar? Obrigado... |
|
|
|
|
|
#8 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jun 2011
Posts: 209
Reputation: 13
|
Tenta usar um:
PHP Code:
Last edited by Victor Cesaroni; 03/08/2011 at 01:16 AM. Reason: Escrevi "Teta" em vez de "Tenta" :X |
|
|
|
|
|
#9 | |
|
Big Clucker
![]() ![]() Join Date: Jul 2011
Posts: 55
Reputation: 0
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Ajuda] Sistema parecido ao telemóvel | Swat007forever | Português/Portuguese | 3 | 02/01/2011 10:37 AM |
| Ideas para un PLUGIN para samp | xenowort | Español/Spanish | 17 | 05/09/2010 08:53 PM |
| CURSO php para pawno y algo para the_chaoz | xenowort | Español/Spanish | 4 | 19/02/2010 01:55 PM |