11.02.2017, 18:44
Hello
I want to transform this code (zcmd to strcmp) please help me how to do it anyway.
I want to transform this code (zcmd to strcmp) please help me how to do it anyway.
PHP код:
CMD:createactor(playerid,params[]) {
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(actorName, skin, x,y,z,a, animlib, animname);
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 true;
}