Need help SendClientMessage
#1

Hey i need help to SendClientMessage...


I will have it so a skin (285) can use the command. And another skin there try to use the command will the SendClientMessage send him a meassage " you can use this command "
Reply
#2

Quote:
Originally Posted by canip
Посмотреть сообщение
Hey i need help to SendClientMessage...


I will have it so a skin (285) can use the command. And another skin there try to use the command will the SendClientMessage send him a meassage " you can use this command "
pawn Код:
if(GetPlayerSkin(playerid) == 285)
{
   //...
}
else return SendClientMessage(playerid, 0xFFFFAA, "you can use this command");
Reply
#3

What did you mean...

Can you try to put it in here

PHP код:
if(!strcmp(cmdtext"/openhq"true))
    {
        
SendClientMessage(playeridCOLOR_ORANGE"INFO: you have closed the gate");
        if(
IsPlayerInRangeOfPoint(playerid,10.0,244.0000000,72.5000000,1002.5999800))
        {
            
MoveObject(hq,244.0000000,72.5000000,1002.5999800,2.00000000.00.00.0);
            return 
1;
        }
    }
    if(!
strcmp(cmdtext"/closehq"true))
    {
        
SendClientMessage(playeridCOLOR_ORANGE"INFO: you have closed the gate");
        if(
IsPlayerInRangeOfPoint(playerid,10.0,245.3999900,72.5000000,1002.5999800))
        {
            
MoveObject(hq,245.3999900,72.5000000,1002.5999800,2.00000000.00.00.0);
            return 
1;
        }
    } 
Reply
#4

pawn Код:
if(!strcmp(cmdtext, "/openhq", true))
{
    if(GetPlayerSkin(playerid) == 285) {
    SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
    if(IsPlayerInRangeOfPoint(playerid,10.0,244.0000000,72.5000000,1002.5999800))
    {
        MoveObject(hq,244.0000000,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
        return 1;
    }
}
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}

    if(!strcmp(cmdtext, "/closehq", true))
    {
        if(GetPlayerSkin(playerid) == 285) {
        SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
        if(IsPlayerInRangeOfPoint(playerid,10.0,245.3999900,72.5000000,1002.5999800))
        {
            MoveObject(hq,245.3999900,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
            return 1;
        }
    }  
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}
Reply
#5

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
pawn Код:
if(!strcmp(cmdtext, "/openhq", true))
{
    if(GetPlayerSkin(playerid) == 285) {
    SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
    if(IsPlayerInRangeOfPoint(playerid,10.0,244.0000000,72.5000000,1002.5999800))
    {
        MoveObject(hq,244.0000000,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
        return 1;
    }
}
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}

    if(!strcmp(cmdtext, "/closehq", true))
    {
        if(GetPlayerSkin(playerid) == 285) {
        SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
        if(IsPlayerInRangeOfPoint(playerid,10.0,245.3999900,72.5000000,1002.5999800))
        {
            MoveObject(hq,245.3999900,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
            return 1;
        }
    }  
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}
You forgot to close the brackets. <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)