17.01.2010, 17:37
Hello there,
I have this timer setup, it works when a player logs in and in his info file the part ownscar==1
needless to say timer is loaded on gamemode init :P
forward OwnCarIcon();
public OwnCarIcon(){
for (new carownedplayer = 0; carownedplayer < MAX_PLAYERS; carownedplayer++){
if (IsPlayerConnected(carownedplayer)){
if(PlayerInfo[carownedplayer][logged] == 1) {
if(PlayerInfo[carownedplayer][ownscar] == 1) {
new Floatpx,Floatpy,Floatpz;
GetVehiclePos((PlayerInfo[carownedplayer][ownedcar]),ppx,ppy,ppz);
RemovePlayerMapIcon(carownedplayer, CarIcon[carownedplayer]);
SetPlayerMapIcon(carownedplayer, CarIcon[carownedplayer], ppx, ppy,ppz, 1, COLOR_CAR);
}
}
}
}
}
it just doesnt do anything :O
it's supposed to show a Grey Square on radar on player's car position
I have this timer setup, it works when a player logs in and in his info file the part ownscar==1
needless to say timer is loaded on gamemode init :P
forward OwnCarIcon();
public OwnCarIcon(){
for (new carownedplayer = 0; carownedplayer < MAX_PLAYERS; carownedplayer++){
if (IsPlayerConnected(carownedplayer)){
if(PlayerInfo[carownedplayer][logged] == 1) {
if(PlayerInfo[carownedplayer][ownscar] == 1) {
new Floatpx,Floatpy,Floatpz;
GetVehiclePos((PlayerInfo[carownedplayer][ownedcar]),ppx,ppy,ppz);
RemovePlayerMapIcon(carownedplayer, CarIcon[carownedplayer]);
SetPlayerMapIcon(carownedplayer, CarIcon[carownedplayer], ppx, ppy,ppz, 1, COLOR_CAR);
}
}
}
}
}
it just doesnt do anything :O
it's supposed to show a Grey Square on radar on player's car position