04.03.2013, 16:06
(
Последний раз редактировалось Ananisiki; 15.12.2013 в 17:53.
)
^^^^^^^^
if (strcmp("/smoke", cmdtext, true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
if (!strlen(cmdtext[9])) return SendClientMessage(playerid,COLOR_USAGE,"[USAGE:] /smoke [1-3]");
switch (cmdtext[9])
{
case '1': ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
case '2': ApplyAnimation(playerid,"SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
case '3': ApplyAnimation(playerid,"SMOKING", "M_smkstnd_loop", 4.0, 1, 0, 0, 0, 0);
default: SendClientMessage(playerid,COLOR_USAGE,"[USAGE:] /smoke [1-3]");
}
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "[ERROR:] Not possible in a vehicle.");
}
return 1;
}