21.11.2010, 02:18
pawn Код:
new pcount, v;
foreach(Player,i)
{
if(IsPlayerInVehicle(i)
{
for(v=1;v<MAX_VEHICLES;v++)
{
if(GetPlayerVehicleID(i) == VehicleBombed[v])
{
pcount++;
}
}
}
}
new pcount, v;
foreach(Player,i)
{
if(IsPlayerInVehicle(i)
{
for(v=1;v<MAX_VEHICLES;v++)
{
if(GetPlayerVehicleID(i) == VehicleBombed[v])
{
pcount++;
}
}
}
}
stock
whatEver ( vehicleid )
{
new
string [ 128 ],
pName [ MAX_PLAYER_NAME + 2]
;
foreach (Player, i)
{
if ( IsPlayerInVehicle ( i, vehicleid ) )
{
GetPlayerName ( playerid, pName, MAX_PLAYER_NAME );
strins ( pName, ",", strlen ( pName ) - 1 );
strins ( string, pName, strlen ( string ) );
}
}
TextDrawSetString ( whatEver, string );
return 1;
}