PutPlayerInVehicle
#1

How I putplayerinvehicle when he type this command?
PHP код:
YCMD:veh(playeridparams[], help)
{
    
#pragma unused help
    
new idstring[40], FloatK[3], c1,c2;
     if(
PlayerInfo[playerid][xAdmin] < 3) return SCM(playerid, -1"{A80000}[Error]: {585858}You are not an administrator!");
      {
         if(
sscanf(params,"iii"idc1c2)) return SendClientMessage(playerid, -1"/veh [ID] [Col1] [Col2]");
         
GetPlayerPos(playerid,K[0], K[1], K[2]);
         
format(stringsizeof(string), "Vehicle ID %i"id);
         
SendClientMessage(playerid, -1string);
         
CreateVehicle(idK[0], K[1], K[2], 90c1c290);
     }
    return 
true;

Thanks in advance. Rep+
Reply
#2

PHP код:
PutPlayerInVehicle(playeridvehicleidseatid); 
PHP код:
YCMD:veh(playeridparams[], help

    
#pragma unused help 
    
new idstring[40], FloatK[3], c1,c2
     if(
PlayerInfo[playerid][xAdmin] < 3) return SCM(playerid, -1"{A80000}[Error]: {585858}You are not an administrator!"); 
      { 
         if(
sscanf(params,"iii"idc1c2)) return SendClientMessage(playerid, -1"/veh [ID] [Col1] [Col2]"); 
         
GetPlayerPos(playerid,K[0], K[1], K[2]); 
         
format(stringsizeof(string), "Vehicle ID %i"id); 
         
SendClientMessage(playerid, -1string); 
         
CreateVehicle(idK[0], K[1], K[2], 90c1c290); 
         
PutPlayerInVehicle(playeridid0);
     } 
    return 
true

Reply
#3

Edit: Thanks, i dont see you edit post.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)