04.07.2015, 21:38
Gostaria de saber como enviar a mensagem sem ser para as bikes, mas para os outros veнculos, aqui estб enviando para os dois, quando modifico envia para nenhum deles, onde estou errando? Agradeзo quem ajudar!
eu criei desta forma a mensagem:
eu criei desta forma a mensagem:
PHP код:
for(new i=0; i< MAX_PLAYERS; i++)
{
new vid;
vid = GetPlayerVehicleID(i);
new modelo;
modelo = GetVehicleModel ((vid));
if(modelo == 509 || modelo == 510 || modelo == 481) return 1;
if(IsACar(modelo))
{
SendClientMessage(playerid,-1,"Para ligar/desligar o veнculo aperte: 'Y'");
return 1;
}
}
stock IsACar(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,
418,419,420,421,422,423,424,426,427,428,429,431,432,433,434,435,436,437,438,
439,440,442,443,444,445,451,455,456,458,459,466,467,470,474,475,477,478,479,
480,482,483,486,489,490,491,492,494,495,496,498,499,500,502,503,504,505,506,
507,508,514,515,516,517,518,524,525,526,527,528,529,533,534,535,536,540,541,
542,543,544,545,546,547,549,550,551,552,554,555,556,557,558,559,560,561,562,
565,566,567,568,573,575,576,578,579,580,582,585,587,588, 589,596,597,598,599,
600,601,602,603,604,605,609: return 1;
}
return 1;
}