Jump to content
  • 0

pomoc [HELP]Príkaz


Eroor

Dotaz

ked napisem /csp tak to nefunguje .. No napise akokeby /csc

{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"{FF0000}[ ARENA ] {0080FF}Niesi prihlaseny za {FF0000}RCON!");
        SendClientMessageToAll(0xFFFF00FF, "{FF0000}[ ARENA ] {FFFF00}Začal sa súboj v Counter Strike Aréne! Pripoj sa pomocou {FF0000}/csjoinct {FFFF00}alebo {FF0000}/csjoint");
return 1;
}
if (strcmp("/csp", cmdtext, true, 10) == 0)
{
        SendClientMessage(playerid, 0x0080FFFF, "{FF0000}[ PRAVIDLA ] 1. {00FFFF}Zákaz používania príkazov, ktoré su už na servery ! (Príklad : /hp) (KICK,JAIL) ");
        SendClientMessage(playerid, 0x0080FFFF, "{FF0000}[ PRAVIDLA ] 2. {00FFFF}Zabíjanie, kým sa aréna neodštartuje, je zakázané (KICK,JAIL) ");
        SendClientMessage(playerid, 0x0080FFFF, "{FF0000}[ PRAVIDLA ] 3. {00FFFF}Je zakázané lezenie mimo mapy arény ! (KICK,JAIL) ");
        SendClientMessage(playerid, 0x0080FFFF, "{FF0000}[ PRAVIDLA ] 4. {00FFFF}Zabíjanie spoluhráčov T/CT sa trestá Kickom ! (KICK,JAIL) ");
        SendClientMessage(playerid, 0x0080FFFF, "{FF0000}[ PRAVIDLA ] 5. {00FFFF}Neznalosť pravidiel sa neospravedlňuje ! (KICK,JAIL) ");
        SendClientMessage(playerid, 0x0080FFFF, "{FF0000}[ PRAVIDLA ] 6. {00FFFF}Zákaz spawnovať autá alebo to, čo by škodilo iným hráčom ! (KICK,JAIL )");
return 1;
}

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

 

strcmp("/csp", cmdtext, true, 10) == 0)

to číslo určuje, koľko znakov bude porovnávať, čiže pri štvorznakovom texte "/csp" je 10 zbytočných

+ čo tak ešte ukázať príkaz /csc (keďže sa ho to týka)?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...