20.06.2011, 18:52
Quote:
Pegou este codigo do God Father ... Olha ele aqui:
PHP Code:
|
Quote:
Um loop terб que criar variбveis e ainda terб que acrescentar +1 em cada mensagem enviada, realmente acham que й mais rбpido?
pawn Code:
Abraзos _____ Shadow, MAX_PLAYER_NAME й muito ъtil, isto deixa o cуdigo muito mais genйrico para funcionar em caso de os desenvolvedores aumentaram o tamanho do limite do nick .. Para deixar 100 linhas para mudar 0xF para 100, enfim Abraзos |
....
#OnTopic
IsvalidVehicle:
pawn Code:
stock IsValidVehicle(playerid, vehid)// By: [iPs]Garfield~
{
if(!IsPlayerInAnyVehicle(playerid)) return false;
static ModelosValidos[]=
{
562,565,559,561,560,575,534,567,536,411,579,602,496,518,527,589,597,419,533,526,474,545,517,410,600,
436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,467,426,547,405,409,550,566,540,421,
529,431,438,437,420,525,552,416,433,427,490,528,407,544,470,598,596,597,599,601,428,499,609,524,578,486,406,573,
455,588,403,514,423,414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,483,508,429,541,415,480,434,
506,451,555,477,400,404,489,479,442,458,558
};
for(new i; i < sizeof(ModelosValidos); ++i)
{
if(GetVehicleModel(GetVehicleID(playerid)) == ModelosValidos[i])
{
return true;
}
}
return false;
}