if (strcmp("/vommit", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFF, "Amfg what did you eat?! that color isnt very nice!.");
SendClientMessage(playerid, 0xFFFFFF, "A f*ck al that vommiting made you a little disorientadet");
ApplyAnimation(playerid,"PED","EAT_Vomit_SK ",4.1,1,1,1,1,1);
SetPlayerHealth(playerid,90.0);
SetPlayerDrunkLevel (playerid, 5000);
return 1;
}
if (strcmp("/pee", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFF, "Omfg dont pee outside maybe there is a police in the neighberhood!.");
ApplyAnimation(playerid,"PED","# Piss_in ",4.1,1,1,1,1,1);
return 1;
}
if (strcmp("/skate", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFF, "YAY! lets skate!!!.");
ApplyAnimation(playerid,"PED","# skate_run ",4.1,1,1,1,1,1);
if (strcmp("/vommit", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFF, "Amfg what did you eat?! that color isnt very nice!.");
SendClientMessage(playerid, 0xFFFFFF, "A f*ck al that vommiting made you a little disorientadet");
ApplyAnimation(playerid,"FOOD","EAT_Vomit_SK ",4.1,1,1,1,1,1);
SetPlayerHealth(playerid,90.0);
SetPlayerDrunkLevel (playerid, 5000);
return 1;
}
if (strcmp("/pee", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFF, "Omfg dont pee outside maybe there is a police in the neighberhood!.");
ApplyAnimation(playerid,"PAULNMAC","# Piss_in ",4.1,1,1,1,1,1);
return 1;
}
if (strcmp("/skate", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFF, "YAY! lets skate!!!.");
ApplyAnimation(playerid,"SKATE","# skate_run ",4.1,1,1,1,1,1);
return 1;
}
|
Apart from much grammar errors I dont see much wrong thins
|
if(!strcmp(cmdtext, "/vommit", true, 7)) // The number 7 represents the length of the command
{
SendClientMessage(playerid, 0xFFFFFF, "Amfg what did you eat?! that color isnt very nice!.");
SendClientMessage(playerid, 0xFFFFFF, "A f*ck al that vommiting made you a little disorientadet");
ApplyAnimation(playerid,"FOOD","EAT_Vomit_SK ",4.1,1,1,1,1,1);
SetPlayerHealth(playerid,90.0);
SetPlayerDrunkLevel (playerid, 5000);
return 1;
}
if(!strcmp(cmdtext, "/pee", true, 4)) // The number 4 represents the length of the command
{
SendClientMessage(playerid, 0xFFFFFF, "Omfg dont pee outside maybe there is a police in the neighberhood!.");
ApplyAnimation(playerid,"PAULNMAC","# Piss_in ",4.1,1,1,1,1,1);
return 1;
}
if(!strcmp(cmdtext, "/skate", true, 6)) // The number 6 represents the length of the command
{
SendClientMessage(playerid, 0xFFFFFF, "YAY! lets skate!!!.");
ApplyAnimation(playerid,"SKATE","# skate_run ",4.1,1,1,1,1,1);
return 1;
}