23.09.2013, 00:23
eu queria um codigo de jetpack para admin em servidor rpg e queria saber como adiciona tambйm des de jб obrigado.
if(strcmp(cmd,"/jetpack",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_JETPACK);
}
return 1;
}
CMD:jetpack(playerid)
{
if(VarAdmin[playerid] > 1)
{
SetPlayerSpecialAction(playerid, 2);
}
else SendClientMessage(playerid, -1,"Vocк nгo й admin...");
return 1;
}
if(strcmp(cmd, "/jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode pegar seu jetpack na cadeia");
return true;
}
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= MASTER)
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк Nгo Pode Usar /jetpack em Um Veiculo !");
SetPlayerSpecialAction(playerid, 2);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s Pegou seu JetPack", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
}
return true;
}
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58782) : error 010: invalid function or declaration C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58784) : error 010: invalid function or declaration C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58786) : error 010: invalid function or declaration C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58789) : error 010: invalid function or declaration C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58792) : error 010: invalid function or declaration C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58794) : error 010: invalid function or declaration C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5879 : error 021: symbol already defined: "ProxDetector" C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58799) : error 010: invalid function or declaration C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(58802) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors. |
mas eu procurei OnPlayerCommandText e apareceu varios aonde devo colocar o codigo?
|
if(strcmp(cmd, "/jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode pegar seu jetpack na cadeia");
return true;
}
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= MASTER)
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк Nгo Pode Usar /jetpack em Um Veiculo !");
SetPlayerSpecialAction(playerid, 2);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s Pegou seu JetPack", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
}
return true;
}
Pegue o meu comando, peguei da minha GM que funciona perfeitamente!
pawn Код:
|
sim sу que eu queria saber em qual parte do pawno que coloca ele? me explica passo a passo para eu aprender por favor?
|