Jump to content
Posted
comment_789867

Hooi ik had teleports gemaakt

maar als ik dan typ gaat de vehicle naar de vehicle pos en de player naar de player pos

maar waat ik wil is:

te voet ---->> kom je op de PlayerPos

in een vehicle ---->> kom je op de VehiclePos

en niet appart. Hoe kan ik dit fixen

dit is de code:

	if (strcmp("/stuntplace", cmdtext, true) == 0)
{
  	new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehicleid,2114.2153,-2535.7747,13.5469);
SetVehicleZAngle(vehicleid,5.1033);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome in The StuntZone");
SetPlayerPos(playerid,2073.3618,-2546.3396,13.5469);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome in The StuntZone");
return 1;
}
if (strcmp("/chilliad", cmdtext, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehicleid,-2345.5344,-1650.9894,483.7031);
SetVehicleZAngle(vehicleid,5.1033);
SetPlayerPos(playerid,-2345.5344,-1650.9894,483.7031);
SendClientMessage(playerid, COLOR_YELLOW,"You are now at MountChilliad");
return 1;
}

Wat doe ik fout als 1 van jullie het weet en me uit de brand kan helpen graag :tu:

Featured Replies

comment_789903
if (strcmp("/stuntplace", cmdtext, true) == 0)
{
   new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(vehicleid,2114.2153,-2535.7747,13.5469);
SetVehicleZAngle(vehicleid,5.1033);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome in The StuntZone");
}
else {
SetPlayerPos(playerid,2073.3618,-2546.3396,13.5469);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome in The StuntZone");
}
return 1;
}
if (strcmp("/chilliad", cmdtext, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(vehicleid,-2345.5344,-1650.9894,483.7031);
SetVehicleZAngle(vehicleid,5.1033);
SendClientMessage(playerid, COLOR_YELLOW,"You are now at MountChilliad");
}
else {
SetPlayerPos(playerid,-2345.5344,-1650.9894,483.7031);
SendClientMessage(playerid, COLOR_YELLOW,"You are now at MountChilliad");
}
return 1;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.