Help command
#3

ForceClassSelection(playerid); is likй F4 it gust forcй thй playйr to choos antoйhr skin. i looking for who can i forcй a plyйr to changй thй tйam
Quote:

if(strcmp("/pm", cmd, true) == 0)
{
tmp = strtok(cmdtext,idx);

if(!strlen(tmp) || strlen(tmp) > 5) {
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR," Usage:/team (id)");
return 1;
}

new id = strval(tmp);
gMessage = strrest(cmdtext,idx);

if(!strlen(gMessage)) {
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR," Usage: /team (id)");
return 1;
}

if(!IsPlayerConnected(id)) {
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"/team : Bad player ID");
}

if(playerid != id) {
GetPlayerName(id,iName,sizeof(iName));
GetPlayerName(playerid,pName,sizeof(pName));
SetPlayerHealth(id,0);
SetPlayerTeam(id, 2);

}
return 1;
}

Reply


Messages In This Thread
Help command - by Amine_Mejrhirrou - 15.12.2010, 23:31
Re: Help command - by <Weponz> - 16.12.2010, 01:56
Re : Help command - by Amine_Mejrhirrou - 16.12.2010, 07:51
Re: Help command - by Face9000 - 16.12.2010, 07:52
Re : Help command - by Amine_Mejrhirrou - 16.12.2010, 08:02
Re: Help command - by HyperZ - 16.12.2010, 08:08
Re : Help command - by Amine_Mejrhirrou - 16.12.2010, 08:34
Re : Help command - by Amine_Mejrhirrou - 07.01.2011, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)