30.11.2011, 15:56
pawn Код:
if(IsPlayerInAnyVehicle(playerid2))
{
format(string, sizeof(string), "~r~%s (id:%d)~n~~g~%d Metros %s~n~~r~Vida:%d Colete:%d~n~~b~%s %s",PlayerName(playerid2),playerid2,floatround(Distance),CityInGps[i][CITYNAME],floatround(Vida),floatround(Colete),weaponNames(GetPlayerWeapon(playerid2)),vehName[GetVehicleModel(GetPlayerVehicleID(playerid2))-400]);
}
else
{
format(string, sizeof(string), "~r~%s (id:%d)~n~~g~%d Metros %s~n~~r~Vida:%d Colete:%d~n~~b~%s Sem Veiculo",PlayerName(playerid2),playerid2,floatround(Distance),CityInGps[i][CITYNAME],floatround(Vida),floatround(Colete),weaponNames(GetPlayerWeapon(playerid2)));
}
}
}
TextDrawSetString(GPS[playerid],string);
}
}
}
else
{
if(gpstype==0) format(string, sizeof(string), "~g~%s (id:%d)~n~~b~Em Interior",PlayerName(playerid2),playerid2);
else
{
if(GetPlayerWeapon(playerid2)==0)
{
if(IsPlayerInAnyVehicle(playerid2))
{
format(string, sizeof(string), "~r~%s (id:%d)~n~~g~Em Interior~n~~b~Vida:%d Colete:%d~n~~g~Sem Arma %s",PlayerName(playerid2),playerid2,floatround(Vida),floatround(Colete),vehName[GetVehicleModel(GetPlayerVehicleID(playerid2))-400]);
}
else
{
format(string, sizeof(string), "~r~%s (id:%d)~n~~g~Em Interior~n~~b~Vida:%d Colete:%d~n~~g~Sem Arma Sem Veiculo",PlayerName(playerid2),playerid2,floatround(Vida),floatround(Colete));
}
}
else
{
if(IsPlayerInAnyVehicle(playerid2))
{
format(string, sizeof(string), "~r~%s (id:%d)~n~~g~Em Interior~n~~b~Vida:%d Colete:%d~n~~g~%s %s",PlayerName(playerid2),playerid2,floatround(Vida),floatround(Colete),weaponNames(GetPlayerWeapon(playerid2)),vehName[GetVehicleModel(GetPlayerVehicleID(playerid2))-400]);
}
else
{
format(string, sizeof(string), "~r~%s (id:%d)~n~~g~Em Interior~n~~b~Vida:%d Colete:%d~n~~g~%s Sem Veiculo",PlayerName(playerid2),playerid2,floatround(Vida),floatround(Colete),weaponNames(GetPlayerWeapon(playerid2)));
}
}
}