Dinero al llegar a un lugar...
#1

Hola bueno estoy con un GM de Zombie viendo errores,bugs que tiene y al mismo tiempo le quiero agregar algunas cosas (Si es posible se los dejo para que lo vean... Enrealidad es un Edit de un GM Zombi reciente que publico GROVE4L)...

Bueno en el caso de los GM Zombi quisiera saber si cuando se llega a un CP se podria recibir "DINERO"

Ese dinero luego se lo puede canjear por Armas con algun menu o algo por el estilo en fin aqui una lista resumida de lo que quiero hacer

Porfavor respondanme

· 1 - Al llegar a un CP (Refugio) ganar algo de dinero (Setearlo automaticamente sin que el Admin lo tenga que setear)

· 2 - Crear un menu donde haya armas y alado haya un precio que se pague por cada una...

Simplemente eso espero que me puedan ayudar

Salu2

Amor y Peace.-
Reply
#2

va en pedidos
Reply
#3

chaoz tiene razуn... pero bueno, les de las cosas automбticamente o con comando?
Reply
#4

Depende lo que quieras, hay miles de formas, pickup, playertopoint, etc.
Reply
#5

No serнa tan dificil viendolo de un modo.

Sуlo en la funciуn de OnPlayerEnterPickup creo, no se, no recuerdo xd

Create el "Showplayerdialog(....)" No serнa tanto problema.
Reply
#6

IsPlayerInCheckpoint y SetPlayerCheckpoint Si no me equivoco, hay esta todo.
Reply
#7

"CheckPoint" .-.
Reply
#8

Un ejemplo de la wiki

pawn Код:
new cash;
 
public OnGameModeInit()
{
    cash = CreatePickup(1274, 2, 0.0, 0.0, 9.0);
    return 1;
}
 
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == cash) GivePlayerMoney(playerid,10000);//Verбs que aquн da dinero por entrar al pickup..
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
Reply
#9

Gracias ahora la pregunta serian donde lo pongo? xD

Y otra cosa mas nada mas...

pawn Код:
cash = CreatePickup(1274, 2, 0.0, 0.0, 9.0);
Esas son las cordenadas no? Osea... Como veo las cordenadas?
Reply
#10

Las coordenadas ya no son problema... Ahora quiero saber esto xD

pawn Код:
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1308) : warning 217: loose indentation
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1308) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1309) : error 001: expected token: ";", but found "{"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1310) : warning 213: tag mismatch
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1310) : warning 213: tag mismatch
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1310) : warning 202: number of arguments does not match definition
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1314) : warning 225: unreachable code
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1314) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1314) : error 004: function "Streamer_OnPlayerPickUpPickup" is not implemented
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1316) : error 017: undefined symbol "pickupid"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1319) : warning 225: unreachable code
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1319) : warning 217: loose indentation
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1319) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1319) : warning 215: expression has no effect
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1319) : error 001: expected token: ";", but found "if"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1336) : error 021: symbol already defined: "cash"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1338) : warning 217: loose indentation
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1338) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1339) : error 001: expected token: ";", but found "{"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1340) : warning 213: tag mismatch
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1340) : warning 213: tag mismatch
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1340) : warning 202: number of arguments does not match definition
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1344) : warning 225: unreachable code
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1344) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1344) : error 004: function "Streamer_OnPlayerPickUpPickup" is not implemented
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1346) : error 017: undefined symbol "pickupid"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1349) : warning 225: unreachable code
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1349) : warning 217: loose indentation
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1349) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1349) : warning 215: expression has no effect
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1349) : error 001: expected token: ";", but found "if"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1366) : error 021: symbol already defined: "cash"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1368) : warning 217: loose indentation
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1368) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1369) : error 001: expected token: ";", but found "{"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1370) : warning 213: tag mismatch
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1370) : warning 213: tag mismatch
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1370) : warning 202: number of arguments does not match definition
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1374) : warning 225: unreachable code
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1374) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1374) : error 004: function "Streamer_OnPlayerPickUpPickup" is not implemented
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1376) : error 017: undefined symbol "pickupid"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1379) : warning 225: unreachable code
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1379) : warning 217: loose indentation
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1379) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1379) : warning 215: expression has no effect
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1379) : error 001: expected token: ";", but found "if"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1396) : error 021: symbol already defined: "cash"
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1398) : warning 217: loose indentation
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1398) : error 029: invalid expression, assumed zero
D:\Users\Dario\Desktop\zm\gamemodes\GMZombie.pwn(1399) : error 001: expected token: ";", but found "{"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Porfavor ayudenme
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)