[Ajuda] Escreve /laseron nao Acontece nada !
#1

Quote:

if (!strcmp("/laseron", cmdtext, true))
{
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "color", GetPVarInt(playerid, "color"));
SendClientMessage(playerid,-1,"[x] Laser {00FF00}ligado.");
return 1;
}
if (!strcmp("/laseroff", cmdtext, true))
{
SetPVarInt(playerid, "laser", 0);
RemovePlayerAttachedObject(playerid, 0);
SendClientMessage(playerid,-1,"[x] Laser {FF0000}desligado.");
return 1;
}
if (!strcmp("/lasercor", cmd, true))
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if (!strlen(tmp))
{
SendClientMessage(playerid, -1, "[x] {FF0000}use: /lasercor [vermelho,azul,rosa,laranja,verde,amarelo]");
return 1;
}
if (!strcmp(tmp, "vermelho", true)) SetPVarInt(playerid, "color", 18643);
else if (!strcmp(tmp, "azul", true)) SetPVarInt(playerid, "color", 19080);
else if (!strcmp(tmp, "rosa", true)) SetPVarInt(playerid, "color", 19081);
else if (!strcmp(tmp, "laranja", true)) SetPVarInt(playerid, "color", 19082);
else if (!strcmp(tmp, "verde", true)) SetPVarInt(playerid, "color", 19083);
else if (!strcmp(tmp, "amarelo", true)) SetPVarInt(playerid, "color", 19084);
else SendClientMessage(playerid, -1, "[x] {FF0000}Estб cor nгo temos disponivel sу temos vermelho,azul,rosa,laranja,verde e amarelo.");
return 1;
}

Ae Ajudem ae Escrevo /laseron nao acontece nada +Rep quem Ajudar
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=207732

Vocк tб usando esse FS acima?


PS: Se nгo estiver ele pode te ajudar. e.e
Reply
#3

Quote:
Originally Posted by Ts3
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=207732

Vocк tб usando esse FS acima?


PS: Se nгo estiver ele pode te ajudar. e.e
Nao estou usando FS coloquei esse cmd no GM peguei de outro GM e coloquei no meu sу que vc digita o comando nao aparece nada
Reply
#4

Claro, simplesmente estб atribuindo o valor 1 a variбvel "laser", a nгo ser que tenha alguma funзгo que esteja checando a todo momento se a variбvel "laser" esta com o valor de 1 e attachando o objeto, caso contrбrio certo que nгo irб funcionar...procure por OnPlayerUpdate, ou alguma funзгo que й checada a todo momento em seu gamemode...

Estude mais, procure mais e evite muitos tуpicos! Abraзos.
Reply
#5

Vocк colocou as funзхes do OnPlayerUpdate desse sistema no seu GM? Se nгo colocou por isso nгo estб pegando.
Reply
#6

:/ ook
Reply
#7

Quote:
Originally Posted by Ts3
Посмотреть сообщение
Vocк colocou as funзхes do OnPlayerUpdate desse sistema no seu GM? Se nгo colocou por isso nгo estб pegando.
Procurei pelas funзoes no OnPlayerUpdate mas nao achei..
Reply
#8

Entгo veja esse mesmo:

https://sampforum.blast.hk/showthread.php?tid=207732

Й o mesmo sistema.
Reply
#9

Quote:
Originally Posted by Ts3
Посмотреть сообщение
Entгo veja esse mesmo:

https://sampforum.blast.hk/showthread.php?tid=207732

Й o mesmo sistema.
Sei que vou ser chato ao pergunta isso mas vou tentar, tou editando um GM eu ia pedir para mim te mandar e voce colocar as funзoes no OnPlayerUpdate sу falta isso Preciso de Ajuda pfvr
Reply
#10

cara e simples procura pela public
pawn Код:
OnPlayerUpdate
e olha se nela tem isto:

pawn Код:
if (GetPVarInt(playerid, "laser")) {
RemovePlayerAttachedObject(playerid, 0);
if ((IsPlayerInAnyVehicle(playerid)) || (IsPlayerInWater(playerid))) return 1;
switch (GetPlayerWeapon(playerid)) {
case 23: {
if (IsPlayerAiming(playerid)) {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.108249, 0.030232, 0.118051, 1.468254, 350.512573, 364.284240);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.108249, 0.030232, 0.118051, 1.468254, 349.862579, 364.784240);
}
} else {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.078248, 0.027239, 0.113051, -11.131746, 350.602722, 362.384216);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.078248, 0.027239, 0.113051, -11.131746, 350.602722, 362.384216);
}}}
case 27: {
if (IsPlayerAiming(playerid)) {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.588246, -0.022766, 0.138052, -11.531745, 347.712585, 352.784271);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.588246, -0.022766, 0.138052, 1.468254, 350.712585, 352.784271);
}
} else {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.563249, -0.01976, 0.134051, -11.131746, 351.602722, 351.384216);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.563249, -0.01976, 0.134051, -11.131746, 351.602722, 351.384216);
}}}
case 30: {
if (IsPlayerAiming(playerid)) {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.628249, -0.027766, 0.078052, -6.621746, 352.552642, 355.084289);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.628249, -0.027766, 0.078052, -1.621746, 356.202667, 355.084289);
}
} else {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.663249, -0.02976, 0.080051, -11.131746, 358.302734, 353.384216);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.663249, -0.02976, 0.080051, -11.131746, 358.302734, 353.384216);
}}}
case 31: {
if (IsPlayerAiming(playerid)) {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.528249, -0.020266, 0.068052, -6.621746, 352.552642, 355.084289);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.528249, -0.020266, 0.068052, -1.621746, 356.202667, 355.084289);
}
} else {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.503249, -0.02376, 0.065051, -11.131746, 357.302734, 354.484222);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.503249, -0.02376, 0.065051, -11.131746, 357.302734, 354.484222);
}}}
case 34: {
if (IsPlayerAiming(playerid)) {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.528249, -0.020266, 0.068052, -6.621746, 352.552642, 355.084289);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.528249, -0.020266, 0.068052, -1.621746, 356.202667, 355.084289);
}
return 1;
} else {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.658248, -0.03276, 0.133051, -11.631746, 355.302673, 353.584259);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.658248, -0.03276, 0.133051, -11.631746, 355.302673, 353.584259);
}}}
case 29: {
if (IsPlayerAiming(playerid)) {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.298249, -0.02776, 0.158052, -11.631746, 359.302673, 357.584259);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.298249, -0.02776, 0.158052, 8.368253, 358.302673, 352.584259);
}
} else {
if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.293249, -0.027759, 0.195051, -12.131746, 354.302734, 352.484222);
} else {
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6,0.293249, -0.027759, 0.195051, -12.131746, 354.302734, 352.484222);

}}}}}
return 1;
}
se nao tiver coloque pois sei qual esse sistema que voce esta ultilizando.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)