10.06.2013, 01:47
їNo serнa?:
Me dices si te funciona.
Ademбs, no tengas pena, nadie empezу conociйndolo todo.
Mi primer script fue cuando tenнa 11 aсos, un menъ de 15 colores, y estaba orgulloso de eso
.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/Objeto", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
if(!IsValidObject(Objeto[playerid]))
{
new
Float:x,
Float:y,
Float:z,
Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
GetXYInFrontOfPlayer(playerid, x, y, 10.0);
Objeto[playerid] = CreateObject(1655, x, y, z, 0.0, 0.0, a);
}
}
}
if(strcmp("/Quitarobjeto", cmdtext, true, 10) == 0)
{
if(IsValidObject(Objeto[playerid])) DestroyObject(Objeto[playerid]);
}
return 1;
}
Ademбs, no tengas pena, nadie empezу conociйndolo todo.
Mi primer script fue cuando tenнa 11 aсos, un menъ de 15 colores, y estaba orgulloso de eso
![Tongue](images/smilies/razz.gif)