01.05.2015, 10:04
It's working fine for me...
http://www.dodaj.rs/f/1j/Fk/2Qb0jbsZ/sa-mp-118.png
http://www.dodaj.rs/f/1j/Fk/2Qb0jbsZ/sa-mp-118.png
pawn Код:
CMD:createactor(playerid, params[])
{
new modelid;
if(sscanf(params, "d", modelid)) return SendClientMessage(playerid, -1, "Usage: /createactor [ModelID]");
new Float:ang, Float:x, Float:y, Float:z;
GetPlayerFacingAngle(playerid, ang);
GetPlayerPos(playerid, x, y, z);
new id = CreateActor(modelid, x, y, z, ang);
new string[24];
format(string, sizeof(string), "Actor ID: %d created.", id);
SendClientMessage(playerid, -1, string);
return 1;
}