[Pedido] Criar pickups
#2

Eu criei essa base aqui rapidinha postei no codigos ъteis й uma boa base!

Код:
COMMAND:criarpick(playerid, params[]) { 
new PickupModelo, PickID, Msg[128], Float:x, Float:y, Float:z, PickupTipo; // Setup local variaveis 
for (new i; i < MAX_PLAYERS; i++){ 
if (IsPlayerConnected(i)) //Check Se o player estб connectado 
{ 
if (IsPlayerAdmin(i)) //Check Admin mude conforme seu sistema de admin aqui estб para Rcon 
{ 
if (sscanf(params, "ifffi", PickupModelo, x, y, z, PickupTipo)) SendClientMessage(playerid, 0xFF0000AA, "Digite: \"/criarpick <PickupModelo> <x> <y> <z> <PickupTipo>\""); 
else 
{ 
PickID = CreatePickup(PickupModelo, PickupTipo, x, y, z, -1); //Carregar Pickp em Spawn 
format(Msg, 128, "Voce Criou o pickup-id %i [modelo-id = %i Local Da Criaзao: x=%4.2f, y=%4.2f, z=%4.2f", PickID, PickupModelo, x, y, z); //Informaзoes da Criaзao ... 
SendClientMessage(playerid, 0xFFFF00FF, Msg); 
} 
} 
else 
return 0; 
} 
else 
return 0; 
} 
return 1; 
}
Reply


Messages In This Thread
Criar pickups - by JoshNudock - 29.06.2015, 23:23
Re: Criar pickups - by iTakelot - 29.06.2015, 23:28
Re: Criar pickups - by NexNix - 29.06.2015, 23:40
Re: Criar pickups - by JoshNudock - 30.06.2015, 00:08
Respuesta: Criar pickups - by AndreLuiz - 30.06.2015, 00:24
Re: Criar pickups - by Cleyson - 30.06.2015, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)