24.11.2011, 01:02
pawn Код:
if(strcmp(cmdtext, "/criararvore", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Voce precisa ser admin pra usar este comando!");
new Float:plocx,Float:plocy,Float:plocz;
GetPlayerPos(playerid, plocx, plocy, plocz);
SetXmasTree(plocx,plocy,plocz);
SetPlayerPos(playerid, plocx-2.5, plocy+2.5, plocz);//so you dont get stuck in the presents
return 1;
}