about .amx files - 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: about .amx files (
/showthread.php?tid=105430)
about .amx files -
amin-pwa - 29.10.2009
how can make .amx files ! is .pwn chenge to .amx ! which programe do this ?
Re: about .amx files -
dice7 - 29.10.2009
Download the server package at sa-mp.com and open them with pawno.exe
Re: about .amx files -
amin-pwa - 29.10.2009
thanks !
but now new problam why
------------------------
line off pwn
------------------
if(strcmp(cmdtext, "/atashneshan", true) == 0)
{
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(407,3,X,Y,Z);
SendClientMessage(playerid,0x33AA33AA,"You now have a Public Service Firetruck ");
return 1;
}
--------------------
when write atashneshan game write :
You now have a Public Service Firetruck
but in th game Vehicle Public Service Firetruck not com ?
Re: about .amx files -
Desert - 29.10.2009
Try this
Код:
if(strcmp(cmdtext, "/atashneshan", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(407,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0x33AA33AA,"You now have a Public Service Firetruck ");
return 1;
}
Re: about .amx files -
dirkblok - 29.10.2009
Quote:
Originally Posted by Desert
Try this
Код:
if(strcmp(cmdtext, "/atashneshan", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(407,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0x33AA33AA,"You now have a Public Service Firetruck ");
return 1;
}
|
yea, that will work, but only if you want to get in the car right, try this to just spawn a firetruck
try this to get just a car:
pawn Код:
if(strcmp(cmdtext, "/atashneshan", true) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateVehicle(407,X,Y,Z,-1,-1,50000);
SendClientMessage(playerid,0x33AA33AA,"You have spawned a firetruck. ");
return 1;
}
Re: about .amx files -
amin-pwa - 29.10.2009
thanks !