SA-MP Forums Archive
[AJUDA] Celular - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Celular (/showthread.php?tid=351280)



[AJUDA] Celular - Kratos_xD - 15.06.2012

O Utilitario celular do meu sv ta bugado qunado digito algo e estou usando o celular nao sai o texto direito :S
OBS: nao sai direito = as vezes nao aparece texto nenhum e as vezes aparece um L :S

Код:
if(!strcmp(cmd,"/atender",true))
{
if(GetCall[playerid]==0)return SendClientMessage(playerid,RED," Vocк nгo estб recebendo uma chamada.");
if(InCall[playerid]==1)return SendClientMessage(playerid,RED," Seu telefone estб tocando.!! Para atender digite: /atender");
format(str3,128," Vocк atendeu o telefonema de %s.",GetName(sender));
SendClientMessage(gc,GREEN,str3);
format(str3,128,"(~) %s atendeu o telefone.",GetName(gc));
SendClientMessage(sender,GREEN,str3);
InCall[sender]=1,InCall[gc]=1; GetCall[sender]=0,GetCall[gc]=0;
SetPlayerSpecialAction(sender,SPECIAL_ACTION_USECELLPHONE);
SetPlayerSpecialAction(gc,SPECIAL_ACTION_USECELLPHONE);
SetPlayerAttachedObject(playerid,0,18870,2,0.033999,0.015000,-0.112999,-2.000003,-1.100000,38.400005,1.000000,1.000000,1.000000);
return 1;
}
//  //  //  //  //  //  //  //  //  //  //  //  //  //  //  //  //  //  // |
if(!strcmp(cmd,"/desligar",true))
{
if(InCall[gc]==0)return SendClientMessage(gc,RED,"Vocк nгo estб em uma chamada agora.");
if(gc==playerid)
{
format(str3,128,"Voce desligou a ligaзгo com o %s.",GetName(sender));
SendClientMessage(gc,GREEN,str3);
format(str3,128,"(~) %s desligou a ligaзгo.",GetName(gc));
SendClientMessage(sender,GRAY,str3);
SetPlayerSpecialAction(gc,SPECIAL_ACTION_STOPUSECELLPHONE);
SetPlayerSpecialAction(sender,SPECIAL_ACTION_STOPUSECELLPHONE);
InCall[gc]=0,GetCall[gc]=0; InCall[sender]=0,GetCall[sender]=0;
}
if(sender==playerid)
{
format(str3,128,"Vocк desligou a chamada com o %s.",GetName(gc));
SendClientMessage(sender,GREEN,str3);
format(str3,128,"(~) %s desligou o celular.",GetName(sender));
SendClientMessage(gc,GRAY,str3);
SetPlayerSpecialAction(gc,SPECIAL_ACTION_STOPUSECELLPHONE);
SetPlayerSpecialAction(sender,SPECIAL_ACTION_STOPUSECELLPHONE);
RemovePlayerAttachedObject(playerid, 0);
InCall[gc]=0,GetCall[gc]=0; InCall[sender]=0,GetCall[sender]=0;
}
return 1;
}