17.08.2015, 15:59
Код:
if(strcmp(cmd, "/descuiemasina", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/descuiemasina [carid]"); return 1; } new carid = strval(tmp); if(PlayerData[playerid][pMember] == 10 || PlayerData[playerid][pLeader] == 10) { if(PlayerData[playerid][pRank] >= 5) { if(VehLocked[carid] == 1) { SendClientMessage(playerid, COLOR_GRAD1, "Server: Masina descuiata"); VehLocked[carid] = 0; GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(carid,engine,lights,alarm,0,bonnet,boot,objective); return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, "Masina este deja descuitata!"); } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai rank 5+!"); } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu esti membru remorcari auto!"); } return 1; }