25.04.2010, 23:20
I want to make something where when you switch guns, it says Jacob_Venturas pulls his desert eagle from his holster. This applies for all guns. Can someone please give me an example, perferrably working.
if(strcmp(cmdtext,"/me",true)==0)
{
new pName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /me [action]");
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"%s %s",pName,cmdtext[7]);
SendClientMessageToAll(COLOR_WHITE,string);
}
return 1;
}