/help is an Animation ?! -
Slifer2904 - 05.04.2009
Hi. I have a Game Mode and:
When I type /help (/hilfe) then I do an Animation ?!^^
On my Game Mode Script its an Help Command ?!
Код:
if(strcmp(cmd, "/hilfe", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREEN," **************Server Hilfe & Wichtige Commands*****************");
SendClientMessage(playerid, COLOR_GRAD1,"| NORMAL | /login /stats /buylevel /upgrade /rules /showperso");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /pay /charity /time /buy /unrentcar /givekey /switchkey /id /drink /musik /showlicenses /clothes");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /resetupgrades(100k) /buygun /lock /skill /portable /licenses /lotto /spawnchange /stopani");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /report /cancel /accept /eject /usedrugs /contract /fill /fillcar /clear /service /families /kaufscheine");
SendClientMessage(playerid, COLOR_GRAD3,"| WICHTIG | (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise (/f)amily /me /togooc /tognews /togfam /togwhisper /map /fuel");
SendClientMessage(playerid, COLOR_GRAD4,"| BANK | /balance /withdraw /deposit /wiretransfer");
SendClientMessage(playerid, COLOR_GRAD4,"| TEAM | /kinfo (weiteres folgt)");
And so one...
Why ?!^^
Re: /help is an Animation ?! -
Rusty1337 - 05.04.2009
u dont need IsPlayerConnected
do this
pawn Код:
if(strcmp(cmd, "/hilfe", true) == 0)
{
SendClientMessage(playerid, COLOR_GREEN," **************Server Hilfe & Wichtige Commands*****************");
SendClientMessage(playerid, COLOR_GRAD1,"| NORMAL | /login /stats /buylevel /upgrade /rules /showperso");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /pay /charity /time /buy /unrentcar /givekey /switchkey /id /drink /musik /showlicenses /clothes");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /resetupgrades(100k) /buygun /lock /skill /portable /licenses /lotto /spawnchange /stopani");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /report /cancel /accept /eject /usedrugs /contract /fill /fillcar /clear /service /families /kaufscheine");
SendClientMessage(playerid, COLOR_GRAD3,"| WICHTIG | (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise (/f)amily /me /togooc /tognews /togfam /togwhisper /map /fuel");
SendClientMessage(playerid, COLOR_GRAD4,"| BANK | /balance /withdraw /deposit /wiretransfer");
SendClientMessage(playerid, COLOR_GRAD4,"| TEAM | /kinfo (weiteres folgt)");
return 1;
}
Re: /help is an Animation ?! -
Slifer2904 - 05.04.2009
That doesn't work.
It just does stand "Leertaste to stop the Animation" ?!^^
This is the Code:
Код:
//----------------------------------[hilfe]-----------------------------------------------
if(strcmp(cmd, "/hilfe", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREEN," **************Server Hilfe & Wichtige Commands*****************");
SendClientMessage(playerid, COLOR_GRAD1,"| NORMAL | /login /stats /buylevel /upgrade /rules /showperso");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /pay /charity /time /buy /unrentcar /givekey /switchkey /id /drink /musik /showlicenses /clothes");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /resetupgrades(100k) /buygun /lock /skill /portable /licenses /lotto /spawnchange /stopani");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /report /cancel /accept /eject /usedrugs /contract /fill /fillcar /clear /service /families /kaufscheine");
SendClientMessage(playerid, COLOR_GRAD3,"| WICHTIG | (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise (/f)amily /me /togooc /tognews /togfam /togwhisper /map /fuel");
SendClientMessage(playerid, COLOR_GRAD4,"| BANK | /balance /withdraw /deposit /wiretransfer");
SendClientMessage(playerid, COLOR_GRAD4,"| TEAM | /kinfo (weiteres folgt)");
if(PlayerInfo[playerid][pJob] == 1) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /find"); }
else if(PlayerInfo[playerid][pJob] == 2) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /free"); }
else if(PlayerInfo[playerid][pJob] == 3) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /sex"); }
else if(PlayerInfo[playerid][pJob] == 4) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /selldrugs"); }
else if(PlayerInfo[playerid][pJob] == 5) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /dropcar"); }
else if(PlayerInfo[playerid][pMember] == 9) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /paper /papers /live /news [text]"); }
else if(PlayerInfo[playerid][pJob] == 7) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /repair /refill /duty"); }
else if(PlayerInfo[playerid][pJob] == 8) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /guard"); }
else if(PlayerInfo[playerid][pJob] == 9) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /materials /sellgun"); }
else if(PlayerInfo[playerid][pJob] == 10) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /sellcar"); }
else if(PlayerInfo[playerid][pJob] == 12) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /fight /boxstats"); }
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /fare"); }
else if(PlayerInfo[playerid][pJob] == 15) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /papers /bring /deliver"); }
if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11||PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12){
SendClientMessage(playerid,COLOR_GRAD5,"*** LESSON *** /startlesson /stoplesson /givelicense"); }
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "*** LSPD *** /verstдrkung /ende /showmarke /roadblock /grab /ungrab");
SendClientMessage(playerid, COLOR_GRAD5, "*** LSPD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /tazer");
SendClientMessage(playerid, COLOR_GRAD5, "*** LSPD *** /frisk /take /ticket (/gov)ernment /deliver /camera /ram");
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SendClientMessage(playerid, COLOR_GRAD5, "*** MEDIC *** (/r)adio (/d)epartments /heal /duty");
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_GRAD6, "*** ADMIN *** (/a)dmin (/ah)elp");
}
SendClientMessage(playerid, COLOR_GRAD6,"*** Andere *** /handyhilfe /hausehilfe /miethilfe /bizhilfe /leaderhilfe /fischhilfe /kochhilfe /irchilfe");
}
return 1;
}
Re: /help is an Animation ?! -
DMSOrg - 05.04.2009
pawn Код:
//----------------------------------[hilfe]-----------------------------------------------
if(strcmp(cmd, "/hilfe", true) == 0)
{
SendClientMessage(playerid, COLOR_GREEN," **************Server Hilfe & Wichtige Commands*****************");
SendClientMessage(playerid, COLOR_GRAD1,"| NORMAL | /login /stats /buylevel /upgrade /rules /showperso");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /pay /charity /time /buy /unrentcar /givekey /switchkey /id /drink /musik /showlicenses /clothes");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /resetupgrades(100k) /buygun /lock /skill /portable /licenses /lotto /spawnchange /stopani");
SendClientMessage(playerid, COLOR_GRAD2,"| WICHTIG | /report /cancel /accept /eject /usedrugs /contract /fill /fillcar /clear /service /families /kaufscheine");
SendClientMessage(playerid, COLOR_GRAD3,"| WICHTIG | (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise (/f)amily /me /togooc /tognews /togfam /togwhisper /map /fuel");
SendClientMessage(playerid, COLOR_GRAD4,"| BANK | /balance /withdraw /deposit /wiretransfer");
SendClientMessage(playerid, COLOR_GRAD4,"| TEAM | /kinfo (weiteres folgt)");
if(PlayerInfo[playerid][pJob] == 1) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /find"); }
else if(PlayerInfo[playerid][pJob] == 2) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /free"); }
else if(PlayerInfo[playerid][pJob] == 3) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /sex"); }
else if(PlayerInfo[playerid][pJob] == 4) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /selldrugs"); }
else if(PlayerInfo[playerid][pJob] == 5) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /dropcar"); }
else if(PlayerInfo[playerid][pMember] == 9) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /paper /papers /live /news [text]"); }
else if(PlayerInfo[playerid][pJob] == 7) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /repair /refill /duty"); }
else if(PlayerInfo[playerid][pJob] == 8) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /guard"); }
else if(PlayerInfo[playerid][pJob] == 9) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /materials /sellgun"); }
else if(PlayerInfo[playerid][pJob] == 10) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /sellcar"); }
else if(PlayerInfo[playerid][pJob] == 12) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /fight /boxstats"); }
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /fare"); }
else if(PlayerInfo[playerid][pJob] == 15) {
SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /papers /bring /deliver"); }
if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11||PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12){
SendClientMessage(playerid,COLOR_GRAD5,"*** LESSON *** /startlesson /stoplesson /givelicense"); }
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "*** LSPD *** /verstдrkung /ende /showmarke /roadblock /grab /ungrab");
SendClientMessage(playerid, COLOR_GRAD5, "*** LSPD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /tazer");
SendClientMessage(playerid, COLOR_GRAD5, "*** LSPD *** /frisk /take /ticket (/gov)ernment /deliver /camera /ram");
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SendClientMessage(playerid, COLOR_GRAD5, "*** MEDIC *** (/r)adio (/d)epartments /heal /duty");
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_GRAD6, "*** ADMIN *** (/a)dmin (/ah)elp");
}
SendClientMessage(playerid, COLOR_GRAD6,"*** Andere *** /handyhilfe /hausehilfe /miethilfe /bizhilfe /leaderhilfe /fischhilfe /kochhilfe /irchilfe");
return 1;
}
like said above, IsPlayerConnect is not nessesary.