26.10.2009, 23:54
I am not The best scripter in the world but i need some help here.
First off in storymod you are possible to buy weapons from gunshops in a like of a menu and there is a yellow arrow outside i seen it in elg and i had it a long time ago but i dont rember it was somthing with locations.
Second thing is if somone culd help me with the /enter cmd so it works if you press F Since the Search fuction is down i culd not find any tut or help on the forums.
Thats not the whole code
/cake
First off in storymod you are possible to buy weapons from gunshops in a like of a menu and there is a yellow arrow outside i seen it in elg and i had it a long time ago but i dont rember it was somthing with locations.
Second thing is if somone culd help me with the /enter cmd so it works if you press F Since the Search fuction is down i culd not find any tut or help on the forums.
Код:
if(strcmp(cmd, "/enter", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) { //printf("Found House :%d",i); if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0) { SetPlayerInterior(playerid,HouseInfo[i][hInt]); SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]); SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]); GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1); PlayerInfo[playerid][pInt] = HouseInfo[i][hInt]; PlayerInfo[playerid][pLocal] = i; HouseEntered[playerid] = i; } else { GameTextForPlayer(playerid, "~r~Locked", 5000, 1); } } }
/cake