about .amx files
#1

how can make .amx files ! is .pwn chenge to .amx ! which programe do this ?

Reply
#2

Download the server package at sa-mp.com and open them with pawno.exe
Reply
#3

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 ?
Reply
#4

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;
}
Reply
#5

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;
}
Reply
#6

thanks !

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)