Need help on /(carname)
#1

Guys , i need help on my server www.teamemp.blogspot.com

I need /elegy command how do i do it ?

Eg :
/elegy
Then it will automatically go in the car
Reply
#2

Removed.
Reply
#3

PHP код:
if(strcmp("/elegy",cmdtext,true) == 0)
{
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playerid,x,y,z);
    
CreateVehicle(562xyz0, -1, -160);
    
PutPlayerInVehicle(playerid,vehicleid,0);
    return 
1;

With this command youll spawn elegy on your position and get teleported in it automatically.
Reply
#4

erm where do i put
if(strcmp("/elegy",cmdtext,true) == 0)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
CreateVehicle(562, x, y, z, 0, -1, -1, 60);
PutPlayerInVehicle(playerid,vehicleid,0);
return 1;
}
Reply
#5

Quote:
Originally Posted by hokarheng
Посмотреть сообщение
erm where do i put
if(strcmp("/elegy",cmdtext,true) == 0)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
CreateVehicle(562, x, y, z, 0, -1, -1, 60);
PutPlayerInVehicle(playerid,vehicleid,0);
return 1;
}
put in public OnPlayerCommandText(playerid, cmdtext[])
exemple
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp("/elegy",cmdtext,true) == 0)
   {
       new Float:x, Float:y, Float:z;
       GetPlayerPos(playerid,x,y,z);
       CreateVehicle(562, x, y, z, 0, -1, -1, 60);
       PutPlayerInVehicle(playerid,vehicleid,0);
       return 1;
   }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)