pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/kill", true))
{
SetPlayerHealth(playerid, 0);
return 1;
}
if(!strcmp(cmdtext, "/bar", true))
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, 497.4167,-75.4108,998.7578))
{
ShowPlayerDialog(playerid, 50, DIALOG_STYLE_LIST, "Чo`о ?a*лa`a*i`?", "Нa`i"e`o`оe^ ($1)\nI"e`во ($2)\nВe`но ($3)\nN~e`a~a`?a` ($5)", "E^уi"e`o`ь", "Уйo`e`");
}
else
{
//your if-not code here ( SendClientMessage(playerid, color, "..."); )
}
return 1;
}
if(!strcmp(cmdtext, "/bar", true))
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, 498.9911,-20.6630,1000.6797))
{
ShowPlayerDialog(playerid, 50, DIALOG_STYLE_LIST, "Чo`о ?a*лa`a*i`?", "Нa`i"e`o`оe^ ($1)\nI"e`во ($2)\nВe`но ($3)\nN~e`a~a`?a` ($5)", "E^уi"e`o`ь", "Уйo`e`");
}
else
{
//your if-not code here ( SendClientMessage(playerid, color, "..."); )
}
return 1;
}
if(!strcmp(cmdtext, "/drugs", true))
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, 323.7905,1120.0074,1083.8828))
{
ShowPlayerDialog(playerid, 51, DIALOG_STYLE_LIST, "Чo`о будa*i` i"?e`нe`i`a`o`ь?", "O`?a`вe^a` ($50)\nE^оe^n~ ($200)", "E^уi"e`o`ь", "Уйo`e`");
}
else
{
//your if-not code here ( SendClientMessage(playerid, color, "..."); )
}
return 1;
}
if(!strcmp(cmdtext, "/tabletka", true))
{
SetPlayerWeather(playerid, 10);
SetPlayerDrunkLevel(playerid, 2000);
SendClientMessage(playerid, 0x00C0C0AA, "O`a*бa* i"оi`оa~лa` o`a`блa*o`e^a`...");
return 1;
}
if(!strcmp(cmdtext, "/heal", true))
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, 2033.8627,-1404.4601,17.2588))
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, 0x00C0C0AA, "O`a*бy" вu^лa*чe`лe`.");
}
else
{
//your if-not code here ( SendClientMessage(playerid, color, "..."); )
}
return 1;
}
return 0;
}