11.09.2014, 16:44
hi guys can anybody convert zcmd to strcmp please ?
Thanks.
Thanks.
Код:
CMD:mlift(playerid, params[]) { if (isnull(params)) return SendClientMessage(playerid, -1, Usage: /mlift <up/down>"); if (!strcmp(params, "up", true)) { if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1569.34424, -2156.86060, 12.96720)) return SendClientMessage(playerid, blue, "You Are Not In Garage!"); MoveObject(MechLift, 1569.34424, -2156.86060, 14.70720, 0.5); } else if (!strcmp(params, "down", true)) { if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1569.34424, -2156.86060, 12.96720)) return SendClientMessage(playerid, blue, "You Are Not In Garage!"); MoveObject(MechLift, 1569.34424, -2156.86060, 12.96720, 0.5); } else SendClientMessage(playerid, -1, "usage: up da down!"); return 1; }