23.01.2012, 01:51
pawn Код:
new tpc = 0;
new tp;
if(!strcmp(cmdtext, "/tapete", true)) {
if(tpc == 1) return SendClienteMessage(playerid, -1, "Ja criou...");
static Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
tp = CreateObject(2892, x,y,z,0.0, 0.0,0.0, 500.0);
tpc = 1;
return 1;
}
if(!strcmp(cmdtext, "/deltapete", true)) {
if(tpc == 0) return SendClienteMessage(playerid, -1, "Nao criou...");
DestroyObject(tp); tpc = 0;
return 1;
}