28.02.2013, 05:07
Hello, So im wanting to make an arrow and when i drive into it it teleports me to a set location, i can see the arrow and it teleports me when i step into it but wont when i drive onto it. Code :
Why wont this work? sorry im new to Scripting
Quote:
new pickup1; |
Quote:
public OnGameModeInit() pickup1 = CreatePickup(1318, 19, 974.5681,1399.5906,67.371; |
Quote:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup1) { new vehicleid = GetPlayerVehicleID(playerid); SetVehiclePos(vehicleid, -289.1765,1536.6274,75.5625); } else { SetPlayerPos(playerid, -289.1765,1536.6274,75.5625); } return 1; } |