Posts: 2,286
Threads: 18
Joined: Jun 2010
Quote:
Originally Posted by Strier
pawn Код:
if(IsVehicleInRangeOfPoint( 432, 5.0, Pos[ 0 ], Pos [ 1 ], Pos[ 2 ] )) { if(GetVehicleModel(vehicleid) ==432) { for( new i = 0; i < MAX_PLAYERS; i++) { pMineV[ i ][ oMine ] = true; DestroyObject(Obj); GetPlayerName(i, pKilledN, MAX_PLAYER_NAME); SendDeathMessage(playerid, i, 53); CreateExplosion(Pos[ 0 ], Pos[ 1 ], Pos[ 2 ], 3, 3.0); SetPlayerHealth(i, 0); GameTextForPlayer(i, "Exploded by a mine!", 5000, 4); format(str, SOFS, "You've killed %s ! and got $%d", pKilledN, rand); SendClientMessage(playerid, -1, str); } } } return 1; }
Is this how it does work?
|
No, the first parameter of IsVehicleInRangeOfPoint requires a vehicle ID. I honestly don't know what the vehicle ID is.