Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: kitt85711 on April 05, 2012, 08:44:11 pm
-
I figured out how to change pickup looks through the scripting wiki but I need help giving them function. What would I put in the OnPickedUp? I'm trying to make two different pickups, 1 that teleports and 1 that kills when grabbing it. I'm trying to make a block that would kill you. Just a small portion I don't need a world bounds. I need help
-
Welcome Back :P
Now, look at this example and you will understand :
public OnPickedUp(playerid,pickupid) {
if(pickupid == housegreen) { // housegreen = AddStaticPickup(3,406,x,y,z);
SetPlayerHealth(playerid,0);
}
return 1;
}
pickupid isn't egal with pickupmodel !
In my example, housegreen can be replaced with "3"
// AddStaticPickup(pickupid,pickupmodel,x,y,z);