Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: VC[88]PD on February 04, 2013, 12:38:33 pm
-
Hi,everyone.I've write this,but when I pick these,nothing happen.
[pawn]public OnPickedUp(pickupid, playerid)
{
if ( pickupid == 287)
{
GivePlayerWeapon(playerid, 30, 500);
}
else if ( pickupid == 289)
{
GivePlayerWeapon(playerid, 32, 500);
}
else if ( pickupid == 275)
{
GivePlayerWeapon(playerid, 18, 500);
}
else if ( pickupid == 272)
{
GivePlayerWeapon(playerid, 15, 500);
}
else if ( pickupid == 279)
{
GivePlayerWeapon(playerid, 21, 500);
}
else if ( pickupid == 280)
{
GivePlayerWeapon(playerid, 26, 500);
}
else if ( pickupid == 286)
{
GivePlayerWeapon(playerid, 29, 500);
}
else if ( pickupid == 276)
{
GivePlayerWeapon(playerid, 27, 500);
}
else if ( pickupid == 282)
{
GivePlayerWeapon(playerid, 23, 500);
}
else if ( pickupid == 291)
{
GivePlayerWeapon(playerid, 13, 500);
}
else if ( pickupid == 268)
{
GivePlayerWeapon(playerid, 10, 500);
}
return 1;
}[/pawn]
Please Tell Me!
-
???I really don't know how to fix it.
-
you have to add pickups first addstaticpickup(id,type,floatx,floaty,floatz.
-
you have to add pickups first addstaticpickup(id,type,floatx,floaty,floatz.
I have.
-
Use Pickup ID not Pickup Model ID !
+ when you pick up an weapon , you will get that weapon, so you don't need to put a function for that. (maybe just if you want to set an amount of ammo)
-
question solved by sseebbyy
-
Use Pickup ID not Pickup Model ID !
+ when you pick up an weapon , you will get that weapon, so you don't need to put a function for that. (maybe just if you want to set an amount of ammo)
ye,I want to set that.But how to look pick up ID ?Use a command?
-
When you create a pickup, you have to use:
AddStaticPickup(id, model id, x, y, z);
So, you can see the id at that pickup created.
-
When you create a pickup, you have to use:
AddStaticPickup(id, model id, x, y, z);
So, you can see the id at that pickup created.
but...
[pawn]AddStaticPickup(sp++,287,-409.4112,-555.8333,39.8474);[/pawn]
-
When you create a pickup, you have to use:
AddStaticPickup(id, model id, x, y, z);
So, you can see the id at that pickup created.
Ok,I know ,thanks