Need help with PAWN - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with PAWN (
/showthread.php?tid=174548)
Need help with PAWN -
Lambardi - 06.09.2010
Hello, I am trying to find a way of taking off /rentcar when you enter a car. Basically we want it so you enter a car and just drive it. When people enter cars, two options come up. /rentcar or /exit. If someone could remove it for us or just tell us how to it would be much appreciated. Thanks!
Re: Need help with PAWN -
CyNiC - 06.09.2010
Put it in the top of command:
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage(playerid,changecolor,"[ERROR] Get off the vehicle and try again");
/\ This will avoid the rent while the player be is in a vehicle.
To we remove the gametexts, or messages, post your code.
Re: Need help with PAWN -
ZachZ - 06.09.2010
What you would need to do is remove the /rentcar command itself. And also all of the varibles of the /rentcar cmd out of the script.. I did it before as i hate the rentcar feature myself.
Zach
Re: Need help with PAWN -
Lambardi - 06.09.2010
Thanks guys! The server is now up and running great. Thanks a ton