help zcmd command
#7

Quote:
Originally Posted by PhoenixB
Посмотреть сообщение
Here is the ZCMD command..

pawn Код:
CMD:commandtexthere(playerid, params[])
{
if(PlayerInfo[playerid][InClan] == 1)
{
new Clan[20];
GetPVarString(playerid,"Clan",Clan,sizeof Clan);
Fini_OpenFile(GetClanFile(Clan));
if(!strcmp(cmdtext, Fini_GetStr("ClanCmd"), true))
{
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), Fini_GetFloat("ClanVPosX"), Fini_GetFloat("ClanVPosY"), Fini_GetFloat("ClanVPosZ"));
else SetPlayerPos(playerid,Fini_GetFloat("ClanPosX"),Fini_GetFloat("ClanPosY"),Fini_GetFloat("ClanPosZ"));
Fini_CloseFile();
new string[70];
format(string, sizeof(string), "~Y~~H~ ] Welcome To Your Clan HQ %s ]",Clan);
GameTextForPlayer(playerid,string,2000,4);
SetPlayerInterior(playerid,0);
return SetCameraBehindPlayer(playerid);
}
}
return 1;
}
Hope that helps, place it anywhere but not under any Public Calls unless its a filterscript you will place it under OnFilterScriptInIt

But I want to take the name of the command line 'ClanCmd'
How can I do it?
Reply


Messages In This Thread
help zcmd command - by NeyMar96 - 12.08.2011, 16:20
Re: help zcmd command - by Darnell - 12.08.2011, 16:25
Re: help zcmd command - by NeyMar96 - 12.08.2011, 16:30
Re: help zcmd command - by Kingunit - 12.08.2011, 16:37
Re: help zcmd command - by PhoenixB - 12.08.2011, 16:45
Re: help zcmd command - by Riddick94 - 12.08.2011, 16:46
Re: help zcmd command - by NeyMar96 - 12.08.2011, 16:48
[No subject] - by PhoenixB - 12.08.2011, 16:50
Re: help zcmd command - by NeyMar96 - 12.08.2011, 17:06
Re: help zcmd command - by PhoenixB - 12.08.2011, 17:10

Forum Jump:


Users browsing this thread: 1 Guest(s)