08.09.2010, 18:19
When i type /lgate, it sends back the message saying"You dont have permisson to open this gate". Please help me.
And i am the police skin.
And i am the police skin.
Код:
if(strcmp("/lgate", cmdtext) == 0)
{
if(GateState == 0) //If gate is closed
{
GateState = 1; //Gate = Open
new pskin;
if(pskin == 265 || pskin == 266 || pskin == 267 || pskin == 280 || pskin == 281 || pskin == 284 || pskin == 285 || pskin == 286 || pskin == 287 || pskin == 288)
MoveObject(gate1, 2681.3083496094, 659.74249267578, 11.495002746582,3.0); //To open
}
else
{
if(GetPlayerSkin(playerid))return SendClientMessage(playerid,0xFF0000AA,"You dont have permisson to open this gate");
GateState = 0; //Gate = Closed
MoveObject(gate1, 2680.9462890625, 651.83990478516, 11.495002746582,3.0); //To closed
}
return 1;
}


