05.09.2013, 22:33
PHP код:
if(strcmp(cmd, "/roubarcarga", true) == 0)
{
new vehicleid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(missell[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк jб roubou carga espere 1 hora para roubar novamente!");
return 1;
}
if(vehicleid != 482) return SendClientMessage(playerid, -1, "Vocк Nгo Tem o Carro Correto!");
if(PlayerToPoint(10.0, playerid,-1115.1510,-1637.5106,76.3672))
{
if(PlayerInfo[playerid][pLider] == 19 || PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 20 || PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 24 || PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 25 || PlayerInfo[playerid][pMembro] == 25)
{
SetTimerEx("RoubarCarga",360000,false,"i",playerid);
SendClientMessage(playerid,-1,"Vocк estб roubando a carga , aguarde 5 mins");
missell[playerid] = 1;
SetTimerEx("misel",3600000,0,"d",playerid);
}
}
return 1;
}
GetPlayerVehicleID > pega o id do veiculo , nгo o modelo.
GetVehicleModel > pega o modelo do veiculo