SA-MP Forums Archive
Two questions?!? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Two questions?!? (/showthread.php?tid=321009)



Two questions?!? [+1 rep] - cs_waller - 25.02.2012

Hello guys I have two questions.Why when I write /cellin the phone doesn't appears but the anim for picking up the phone appears

Here is the script for the command:

pawn Код:
if(strcmp(cmd, "/cellin", true) == 0)
 {
     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
     return 1;
 }

The second question is how to make when person buy drink from the sprunk machine or he play in casino I want to make money to be returned.


Re: Two questions?!? - cs_waller - 25.02.2012

bump ? I really need this command


Re: Two questions?!? - T0pAz - 25.02.2012

Quote:
Important: For servers that use SPECIAL_ACTION_USECELLPHONE. This special action will no longer display the cellphone model in the player's hand. This has been done so that other objects can be used in place of the cellphone, such as the custom phones originally added in 0.3c. To replicate the old behaviour of this special action, please see the script below:

Код:
if(strcmp(cmd, "/usecell",true) == 0) {
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
    SetPlayerAttachedObject(playerid, 4, 330, 6); // 4 = attachment slot, 330 = cellphone model, 6 = right hand
    return 1;
}
    
if(strcmp(cmd, "/stopcell",true) == 0) {
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
    RemovePlayerAttachedObject(playerid, 4);
    return 1;
}
4char.


Re: Two questions?!? - cs_waller - 25.02.2012

Thanks it worked can you tell me how to make when person buy drink from the sprunk machine or he play in casino I want to make money to be returned.


Re: Two questions?!? - T0pAz - 25.02.2012

Restrict them from using it by removing the objects or placing blocks to block them.


Re: Two questions?!? - cs_waller - 25.02.2012

Thanks for helping but I want to make this when person buy drink from sprunk machine server automatically returns the 1 dollar


Re: Two questions?!? - cs_waller - 26.02.2012

bump