|
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 " |
if(GetPlayerSkin(playerid) == 285)
{
//...
}
else return SendClientMessage(playerid, 0xFFFFAA, "you can use this command");
if(!strcmp(cmdtext, "/openhq", true))
{
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;
}
}
if(!strcmp(cmdtext, "/closehq", true))
{
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;
}
}
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");
}
|
pawn Код:
|