18.02.2012, 08:47
I have a there you can change already but when you change only change when you type /walk i want it so works when you hold down alt
pawn Код:
}
if(strcmp(x_nr,"1",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREEN, "USAGE: /setstyle 1 [StyleID]");
SendClientMessage(playerid, COLOR_WHITE, "Walk Styles: 1,2,3,4,5,6,7,8,9");
SendClientMessage(playerid, COLOR_WHITE, "Walk Styles: 10,11,12,13,14,15,16");
SendClientMessage(playerid, COLOR_WHITE, "Walk Styles: 17,18");
return 1;
}
new walkstyle;
walkstyle = strval(tmp);
if(walkstyle < 1 || walkstyle > 18)
{
return 1;
}
if(walkstyle > 2 && PlayerInfo[playerid][pDonator] == 0)
{
SendClientMessage(playerid,COLOR_GREY," This is a donator feature only !");
return 1;
}
PlayerInfo[playerid][pWalk] = walkstyle;
format(string, sizeof(string), "You have set your walking style to: %d", walkstyle);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;