#1

I'm looking for a base to create that command you type /criarpickup and it creates a pickup in their coordinates ..
Reply
#2

I had done this quickly edit here it is a good base

Helped? + REP

PHP код:
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
#3

in strcmp up ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)