$3b@st&@n
Administrator

Dołączył: 24 Wrz 2009
Posty: 137
Przeczytał: 0 tematów
Pomógł: 2 razy Ostrzeżeń: 0/6 Skąd: Nowy Tomyśl
|
Wysłany: Pon 15:58, 12 Paź 2009 Temat postu: komenda admina |
|
|
mam problem z cmd admina robie cmd dla admina ale jako gracz jak testowalem wpisalem /zestaw-admina i dostalem ten zestaw czemu Kod: if (strcmp("/zestaw-admina", cmdtext, true, 10) == 0)IsPlayerAdmin(playerid); | nie wiem jak zrobic a specjalnie dla AiO chcia;em zrobic
Post został pochwalony 0 razy |
|
|
$3b@st&@n
Administrator

Dołączył: 24 Wrz 2009
Posty: 137
Przeczytał: 0 tematów
Pomógł: 2 razy Ostrzeżeń: 0/6 Skąd: Nowy Tomyśl
|
Wysłany: Pon 16:44, 12 Paź 2009 Temat postu: |
|
|
a teraz mam tak Kod: C:\Documents and Settings\asdf\My Documents\pobrane pliki\samp02Xserver.win32\pawno\zestaw-admina.pwn(13) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\asdf\My Documents\pobrane pliki\samp02Xserver.win32\pawno\zestaw-admina.pwn(13) : error 036: empty statement
C:\Documents and Settings\asdf\My Documents\pobrane pliki\samp02Xserver.win32\pawno\zestaw-admina.pwn(38) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
|
a kod taki
Kod: #include <a_samp>
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0x33AA33AA, "Na Serwerze Zainstalowany Jest Zestaw Broni Dla Admina ");
SendClientMessage(playerid, 0x33AA33AA, "Zeby dostac bronie wpisz /zestaw-admina (tylko admin) ");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/zestaw-admina", cmdtext, true, 10 && IsPlayerAdmin(playerid);
{
SetPlayerHealth(playerid, 999999);
SetPlayerArmour(playerid, 999999);
GivePlayerWeapon(playerid, 38, 99999);
GivePlayerWeapon(playerid, 34, 99999);
GivePlayerWeapon(playerid, 39, 99999);
GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 9, 1);
GivePlayerWeapon(playerid, 15 ,1);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerWeapon(playerid, 28, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 34, 99999);
GivePlayerWeapon(playerid, 40, 1);
GivePlayerWeapon(playerid, 42, 99999);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerMoney(playerid, 999999999);
SendClientMessageToAll(0x33AA33AA, "Admin Wziął Zestaw Broni God i Kase Poznacie Go Po Kolorku ");
SendClientMessageToAll(0x33AA33AA, "AiO Zaprasza Nasza Strona To serwerklanuaio.dbv.pl ");
SendClientMessage(playerid, 0x33AA33AA, "Dostales god nieskonczona kamizelke bronie kase i dostales inny kolorek ");
SendClientMessage(playerid, 0x33AA33AA, "Skrypt zrobiony dzieki sebastian95 z gtaweb.pl ");
return 1;
}
return 0;
}
|
Post został pochwalony 0 razy |
|
|