Need help - 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)
+--- Thread: Need help (
/showthread.php?tid=434954)
Need help -
manniac - 04.05.2013
Hey guys..i need your help
okay,here we are
i want to create a /eveh command..
it looks like this
Код:
ocmd:eveh(playerid,params[])
{
new vehid,c1,c2,fahrbar;
if(sscanf(params,"i,i,i,i"))return SendClientMessage(playerid,-1,"Benutze: '/eveh [Carid] [Farbe 1] [Farbe 2] [Fahrbar(0=nicht fahrbar) (1=Fahrbar)]");
//adminabfrage rein
if(vehid <400 || vehid >611)return SendClientMessage(playerid,-1,"Achtung!Die Carid darf nur von 400-611 gehen!");
if(fahrbar <0 || fahrbar >1)return SendClientMessage(playerid,-1,"Achtung! Der Wert fьr fahrbar = 1,fьr nicht fahrbar = 0");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateVehicle(vehid,X,Y,Z,c1,c2);
return 1;
}
As you can see,its german^^(because i'm from germany..)
okay,bute i want,when i type /eveh 411 1 1 0,that the car can't be driven,but when i type /veh 411 1 1 1,your should be able to drive it..
SO,how to do it
sry for my bad english:S
AW: Need help -
manniac - 04.05.2013
so,problem is done
![Cheesy](images/smilies/biggrin.png)
/close