[DUV/ID]tres duvidas
#4

NГO TEM COMO CRIAR БGUA NO MTA!!

A outra

Cria esse comando:


pawn Код:
if(strcmp(cmd,"/objeto",true)==0)
{
new obj;
new tmp[256];
tmp = strtok(cmdtext,idx);
obj=strval(tmp)
if(!strlen(tmp))
{
SendClientMessage(playerid, COR, "Use: /objeto [id objeto]");
return 1;
}
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(obj,X,Y,Z,A);
return 1;
}
Se quiser criar somente um objeto por comando, use:

pawn Код:
if(strcmp(cmd,"/tal",true)==0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(idobjeto,X,Y,Z);
return 1;
}
Reply


Messages In This Thread
[DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 17:59
Re: [DUV/ID]tres duvidas - by Ambrуsio - 27.03.2010, 20:34
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:20
Re: [DUV/ID]tres duvidas - by Guilherme_Canani - 27.03.2010, 21:40
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:43
Re: [DUV/ID]tres duvidas - by Guilherme_Canani - 27.03.2010, 21:46
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:48
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:51
Re: [DUV/ID]tres duvidas - by irffri1234 - 27.03.2010, 21:57
Re: [DUV/ID]tres duvidas - by Guilherme_Canani - 28.03.2010, 00:39

Forum Jump:


Users browsing this thread: 3 Guest(s)