28.08.2012, 00:20
Hello everyone i wanted to make my own nitro pickup and it work without errors.
but when i enter the pickup nothing happen, i don't get nitro.
Here is the code :
but when i enter the pickup nothing happen, i don't get nitro.
Here is the code :
pawn Код:
stock CreateNitro(Float:x,Float:y,Float:z,VirtualWorld)
{
Create3DTextLabel("[Nitro]",0xAA3333AA,x,y,z,20,VirtualWorld);
for(new i = 0; i < MAX_PLAYERS; i++) //set a for-loop and loop through all the admins
{
if(IsPlayerInRangeOfPoint(i,5,x,y,z))
{
if(IsPlayerInAnyVehicle(i))
{
SendClientMessage(i,0xAA3333AA,"Youa are in");
AddVehicleComponent(GetPlayerVehicleID(i),1010);
}
}
}
}