17.10.2010, 01:27
You are also using strcmp wrong. You are checking if the command entered is not equivalent to "/pdel".
pawn Код:
if (!strcmp(cmd, "/pdel", true)) // elevator lspd
{
if (IsAPDMember(playerid) || IsAFreecop(playerid))
{
if (lspde == 1) return SendClientMessage(playerid, COLOR_GREY, "** Elevator is already up.");
MoveDynamicObject(pdel, (983, 1570.812622, -1636.721558, 27.354481, 0.8);
SetTimer("GateClose4", 9000, 0);
lspde = 1;
SendClientMessage(playerid, COLOR_BLUE, "Elevator is going up now.");
format(string, sizeof (string), "* %s takes his/her remote and opens active the elevator", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1, COLOR_CHAT2, COLOR_CHAT3, COLOR_CHAT4, COLOR_CHAT5);
}
return 1;
}