31.03.2012, 21:44
pawn Код:
public OnPlayerEnterVehicle ( playerid , vehicleid , ispassenger )
{
static
Float:x,
Float:y,
Float:z,
sIndex;
sIndex = 0;
GetPlayerPos ( playerid , x , y , z );
for ( ; sIndex < sizeof VCaminhoneiro ; ++sIndex )
{
if ( !ispassenger && vehicleid == VCaminhoneiro[ sIndex ] && Emprego[ playerid ] != Caminhoneiro)
{
SetPlayerPos ( playerid , x , y - 0.2 , z );
SendClientMessage ( playerid , 0xFFFFFFAA , "Vocк nгo й um caminhoneiro!" );
break;
}
}
return 1;
}