29.06.2011, 19:13
PHP код:
if(strcmp(cmd, "/liberarcarro", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USO: /liberarcarro [carid]");
if(IsAGang(playerid)) return SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
new carid = strval(tmp);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(carid,1,lights,alarm,doors,bonnet,boot,objective);
VehicleInfo[carid][vPRFLock] = 0;
SendClientMessage(playerid, COLOR_WHITE, "[Info] Veнculo liberado.");
return 1;
}