SA-MP Forums Archive
help /service taxi << - 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)
+--- Thread: help /service taxi << (/showthread.php?tid=631825)



help /service taxi << - Jihanz - 05.04.2017

whether the order is correct, if there is something wrong please justified

PHP код:
CMD:service(playeridparams[])
{
    if(
TelahLogin[playerid]==0) return SCM(playerid,warna_merah,"kamu belum login");
    if(
isnull(params)) return SendClientMessage(playeridwarna_biru"Gunakan: /service [1.taxi/2.medic]");
    if(!
strcmp(params,"1",true))
    {
        new 
str[90],pID,sendername[MAX_PLAYER_NAME+12];
        
GetPlayerName(pID,sendername,sizeof(sendername));
        if(
PlayerInfo[playerid][pJobTaxi] == 1) return SendClientMessage(playerid,warna_putih,"Kamu seorang driver taxi dan tidak semestinya menggunakan command ini");
        if(
taxidriver 1) return SendClientMessage(playerid,warna_coklattua,"Sekarang tidak ada pengemudi taxi yang bertugas, tunggu beberapa saat");
        if(
taxidriver 1){
        
SendClientMessage(playerid,warna_putih,"Kamu sudah memanggil taxi");
        
format(str,sizeof(str),"Seorang Bernama %s memanggil taxi driver ketik '/accept taxi' untuk menerimanya",sendername);
        
SendClientMessage(PlayerInfo[playerid][pJobTaxi]++,warna_biru,str);
        }
        
    }
    else if(!
strcmp(params,"2",true))
    {
    
    }
    return 
1;


Thanks Before



Re: help /service taxi << - Jihanz - 07.04.2017

someone ?


Re: help /service taxi << - AndreiWow - 07.04.2017

What is wrong with it...?


Re: help /service taxi << - Jihanz - 07.04.2017

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
What is wrong with it...?
maybe SendClientMessage