11.01.2010, 19:59
Johnson, I will try this right now, I thank you for spending your time helping me
Edit: This is my first checkpoint (CP1) I'm trying to add another thing to make a checkpoint that teleports me to an interior, but it's not working. Heres my CP1. Can you show me an example of how to add to this code and make it work IG?
I just need you to show me how to add something that teleports me to an interior in CP2. You can make up the cords/interior. I just need an example. Thanks
Edit: This is my first checkpoint (CP1) I'm trying to add another thing to make a checkpoint that teleports me to an interior, but it's not working. Heres my CP1. Can you show me an example of how to add to this code and make it work IG?
I just need you to show me how to add something that teleports me to an interior in CP2. You can make up the cords/interior. I just need an example. Thanks

Код:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid) { if(streamid == CP1) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_CASSEC) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Santos Drug House_|"); SendClientMessage(playerid, 0xE9967AAA, "Go away... pig! "); return 1; } SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Drug House_|"); SendClientMessage(playerid, 0xE9967AAA, "Type /buydrugs [ID] to buy some drugs"); SendClientMessage(playerid, 0xE9967AAA, "1 - Buy 10 grams of drugs ($2000)"); SendClientMessage(playerid, 0xE9967AAA, "2 - Buy 100 grams of drugs ($20000)"); SendClientMessage(playerid, 0xE9967AAA, "3 - Buy 500 grams of drugs ($100000)"); SendClientMessage(playerid, 0xE9967AAA, "4 - Buy 1000 grams of drugs ($150000) - Dealers Only"); SendClientMessage(playerid, 0xE9967AAA, "5 - Buy DrugBag ($1000) - Cops cant find your drugs if they search you"); { } } } return 1; }