one question
#1

Can I do this thing: ?
pawn Код:
new Test;
pawn Код:
Test = AddStaticVehicleEx(522, 0.00, 0.00, 0.00, 0.00, -1, -1, 60000);
and at OnPlayerStateChange, in PLAYER_STATE_DRIVER this:
pawn Код:
if(GetPlayerVehicleID(playerid) == Test) { SendClientMessage(playerid, -1, "TEST"); }
??

I did this and it doesen't works.. the message isn't showing
Reply
#2

Quote:

if(GetPlayerVehicleID(playerid) == Test) return SendClientMessage(playerid, -1, "TEST");

^ if not work reply again
Reply
#3

ok, thanks, it works, but.. what about this code?
pawn Код:
if(IsABarziniCar(newcar))
        {
            if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { SendClientMessage(playerid, COLOR_WHITE, "DEBUG: Barzini member can use car.");}
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "You are not a Barzini member.");
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_WHITE, "DEBUG: Another member, can't use car.");
            }
        }
Reply
#4

Same problem..

pawn Код:
if(IsABarziniCar(newcar))
        {
                if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) return SendClientMessage(playerid, COLOR_WHITE, "DEBUG: Barzini member can use car.") &&  RemovePlayerFromVehicle(playerid);
        }
Reply
#5

nope, doesen't works
Reply
#6

bump?

pawn Код:
new brz1;
pawn Код:
brz1 = AddStaticVehicleEx(521,959.1402,-922.2394,45.3357,1.6566,86,86,60000); // barzini fcr
pawn Код:
if(GetPlayerVehicleID(playerid) == brz1) return SendClientMessage(playerid, -1, "TEST");
this is not working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)