pickup prob
#1

I made a pickup, in that if anyone drive a car into that pickup then the vehicle will get bluse noon, but it doesnt get neon on the vehicle , when i walk into it, it shows "neon is added".How can i fix it?
Reply
#2

Code?
Reply
#3

This is the code

pawn Код:
new Neon;
 
//Onegamemodeinit
Neon = CreatePickup(3096,23,-2029.6306,156.8761,28.8359);
Create3DTextLabel("Blue Neon", NEON,-2029.6306,156.8761,28.8359,100.0, 0);


public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Neon) {
   SetPVarInt(playerid, "neon", 1);
   SetPVarInt(playerid, "blue", CreateObject(18648,0,0,0,0,0,0));
   SetPVarInt(playerid, "blue1", CreateObject(18648,0,0,0,0,0,0));
   AttachObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
   AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
   GameTextForPlayer(playerid, "~b~ Blue ~w~Neon has been added to your vehicle",3500,5);}
return 1;
}
Reply
#4

PLEASE HELP ME..
Reply
#5

help......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)