public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fishhelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x000000, "Fisherman: Fisherman takes boat from base [Dock, island, what ever], \r types /work and goed to checkpoint. Checkpoint is in sea, he fishes here \n [so he needs to stay there a while[maybe drive thru markers]].\n Once loaded he goes to base and unloads the fish.\n ");
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fishhelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x300FFAAB, "Fisherman: Fisherman takes boat from base [Dock, island, what ever], \r types /work and goed to checkpoint. Checkpoint is in sea, he fishes here \n [so he needs to stay there a while[maybe drive thru markers]].\n Once loaded he goes to base and unloads the fish.\n ");
return 1;
}
return 0;
}
If i'm not mistaken, using return 0; is like saying, ignore the command....
|
pawn Код:
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fishhelp", cmdtext, true, 9) == 0)
{
SendClientMessage(playerid, 0x300FFAAB, "Fisherman: Fisherman takes boat from base [Dock, island, what ever], types /work and goed to checkpoint. Checkpoint is in sea, he fishes here [so he needs to stay there a while[maybe drive thru markers]. Once loaded he goes to base and unloads the fish.");
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext,"/fishhelp",true) == 0)
{
SendClientMessage(playerid, 0x300FFAAB, "Fisherman: Fisherman takes boat from base [Dock, island, what ever], types /work and goed to checkpoint. Checkpoint is in sea, he fishes here [so he needs to stay there a while[maybe drive thru markers]. Once loaded he goes to base and unloads the fish.");
return 1;
}
return 1;
}
Hi, i made this script but it doesn't work, can someone help me, here is the script:
pawn Код:
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fishhelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x000000, "Fisherman: Fisherman takes boat from base [Dock, island, what ever], types /work and goed to checkpoint. Checkpoint is in sea, he fishes here");
SendClientMessage(playerid, 0x000000, "[so he needs to stay there a while[maybe drive thru markers]].");
SendClientMessage(playerid, 0x000000, "Once loaded he goes to base and unloads the fish.");
return 1;
}
return 0;
}
if (strcmp("/fishhelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,-1, "Fisherman: Fisherman takes boat from base [Dock, island, what ever], types /work and goed to checkpoint. Checkpoint is in sea, he fishes here");
SendClientMessage(playerid,-1, "[so he needs to stay there a while[maybe drive thru markers]].");
SendClientMessage(playerid,-1, "Once loaded he goes to base and unloads the fish.");
return 1;
}