05.05.2013, 16:25
O titulo ja diz tudo ^^
CMD:cone(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateObject(1237, x, y, z, 0.0, 0.0, 96.0);
}
if(strcmp(cmdtext, "/cone", true) == 0)
{
new strcone[128];
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
coneobj[playerid][conecriado[playerid]] = CreateObject(1238, x, y, z-0.65, 0, 0, 0);
SetPlayerPos(playerid, x, y, z+0.8);
conecriado[playerid] += 1;
format(strcone, sizeof(strcone), "cone %d criado!", conecriado[playerid]);
GameTextForPlayer(playerid, strcone, 3000, 4);
return 1;
}