13.04.2013, 21:55
Hello i hop you can help me.
I will have it so the another skins get a message " You can use this command "
I will have it so the another skins get a message " You can use this command "
PHP код:
if(!strcmp(cmdtext, "/opengdg2", true))
{
if(GetPlayerSkin(playerid) == 285)
if(IsPlayerInRangeOfPoint(playerid,45.0,2178.1000977,-2254.8500977,15.9700003))
{
MoveObject(GD2,2178.1000977,-2254.8500977,19.7900009, 2.0, 0.0, 0.0);
return 1;
}
else return SendClientMessage(playerid, COLOR_ORANGE, "You are not near the gate");
}
if(!strcmp(cmdtext, "/closegdg2", true))
{
if(GetPlayerSkin(playerid) == 285)
if(IsPlayerInRangeOfPoint(playerid,45.0,2178.1000977,-2254.8500977,15.9700003))
{
MoveObject(GD2,2178.1000977,-2254.8500977,15.9700003, 2.0, 0.0, 0.0);
return 1;
}
else return SendClientMessage(playerid, COLOR_ORANGE, "You are not near the gate");
}
return 0;
}