28.08.2012, 10:25
Quote:
try with this
Код:
if(IsPlayerInAnyVehicle(i)) { new vehicle; vehicle = GetPlayerVehicleID(i); SendClientMessage(i,0xAA3333AA,"Youa are in"); AddVehicleComponent(vehicle,1010); } |
Try this:
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(PInfo[i][pAdmin] >= 1 &&IsPlayerInRangeOfPoint(i,5,x,y,z)) // edit this line to your basics
{
if(IsPlayerInAnyVehicle(i))
{
SendClientMessage(i,0xAA3333AA,"Youa are in");
AddVehicleComponent(GetPlayerVehicleID(i),1010);
}
}
}
return 1;
}