12.08.2011, 16:50
(
Последний раз редактировалось JaTochNietDan; 12.08.2011 в 17:22.
Причина: Use the edit button.
)
Just change CommandTextHere to ClanCmd then hit compile should work + Riddick I hope he knows about tabbing etc, i just couldnt be bothered with it
So now you should have your command like this
Etc, you get the idea now, remember to tab it out etc like Riddicks
So now you should have your command like this
pawn Код:
CMD:ClanCmd(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;
}