help me to convert cmd
#5

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
     if(!
strcmp(cmdtext"/createactor")) 
     {
    new 
actorName[24],skin
    if(
sscanf(params,"is[24]",skin,actorName)) return SendClientMessage(playerid,COLOR_GREY,"Usage: /createactor [skinid] [name] "); 
    new 
Float:x,Float:y,Float:z,Float:a
    
GetPlayerPos(playerid,x,y,z); 
    
GetPlayerFacingAngle(playerid,a); 

    new 
animlib[32]; 
     new 
animname[32]; 

    
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32); 

    
sql_CreateActor(actorNameskinx,y,z,aanimlibanimname); 

    new 
string[128]; 
    
format(string,sizeof(string), "New actor created. Skin ID: %i Name: %s. Type /reloadactors to reload all actors",skin,actorName); 
    
SendClientMessage(playerid,COLOR_GREY,string); 
        return 
1;
     }
     return 
0;

Reply


Messages In This Thread
help me to convert cmd - by monisoft - 11.02.2017, 18:44
Re: help me to convert cmd - by Sew_Sumi - 11.02.2017, 18:59
Re: help me to convert cmd - by aymane123 - 11.02.2017, 19:58
Re: help me to convert cmd - by monisoft - 11.02.2017, 20:01
Re: help me to convert cmd - by RyderX - 11.02.2017, 20:14
Re: help me to convert cmd - by YouHack - 11.02.2017, 20:53
Re: help me to convert cmd - by monisoft - 12.02.2017, 15:19
Re: help me to convert cmd - by Macronix - 12.02.2017, 17:50
Re: help me to convert cmd - by monisoft - 12.02.2017, 18:14
Re: help me to convert cmd - by sKenzi1996 - 12.02.2017, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)