07.09.2010, 15:58
I want to add this:
To this but i cant seem to get them to work, guys can you plz help.
Код:
if (GetPlayerSkin(playerid))return SendClientMessage(playerid, 0xFF0000AA, "You cannot open this door!!"); }
Код:
{ if (strcmp("/door", cmdtext, true, 10) == 0) { if(dooropen == 1) { dooropen = 0; new pskin = GetPlayerSkin(playerid); if(pskin == 265 || pskin == 266 || pskin == 267 || pskin == 280 || pskin == 281 || pskin == 284 || pskin == 285 || pskin == 286 || pskin == 287 || pskin == 288) MoveObject(door1,2706.1520996094, 646.59985351563, 13.72029876709,5.0); SendClientMessage(playerid,0xFFFF00FF,"You have just opened the Office Door"); return 1; } else { dooropen = 1; MoveObject(door1,2706.1508789063, 646.59497070313, 9.9702987670898,3.0); SendClientMessage(playerid,0xFFFF00FF,"You have just closed the Office Door"); } } return 0; }