Help with objects - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Help with objects (
/showthread.php?tid=661346)
Help with objects -
albaniaa - 01.12.2018
Hello everyone i need your help because i want to know how to use a gun or jetpack into samp server from the map editor i put them as objects but i cant use guns or jetpack
Thanks for your help
Re: Help with objects -
Alex Magaсa - 01.12.2018
Make sure you have
zcmd include: You can use this command to give yourself a jetpack (you also need to RCON login).
PHP Code:
CMD:jetpack(playerid, params[])
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, -1, "You have given yourself a jetpack!");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
return 1;
SendClientMessage(playerid, -1, "You aren't authorized to use this command!");
return 1;
}
If you want to create a icon with jetpack you need to check the
IsPlayerInRangeOfPoint and add the X,Y,Z location where you want your jetpack to be located and with command you can able to give yourself a jetpack.
Re: Help with objects -
cuber - 01.12.2018
Quote:
Originally Posted by Alex Magaсa
Make sure you have zcmd include: You can use this command to give yourself a jetpack (you also need to RCON login).
PHP Code:
CMD:jetpack(playerid, params[])
{
if (strcmp("/jetpack", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_WHITE, "You have given yourself a jetpack!");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
return 1;
SendClientMessage(playerid, COLOR_WHITE, "You aren't authorized to use this command!");
return 1;
}
return 1;
}
If you want to create a icon with jetpack you need to check the IsPlayerInRangeOfPoint and add the X,Y,Z location where you want your jetpack to be located and with command you can able to give yourself a jetpack.
|
That was legitness.
Re: Help with objects -
Alex Magaсa - 02.12.2018
Quote:
Originally Posted by cuber
That was legitness.
|
Imao i copied from my gamemode and copy-paste the script without checking dont be so dramatic bro we all people do mistakes.