help /service taxi <<
#1

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

someone ?
Reply
#3

What is wrong with it...?
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)