SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/01/2018, 11:32 AM   #1
BluePlayBG
Little Clucker
 
Join Date: Apr 2017
Posts: 42
Reputation: 1
Default Help with /removecp

PHP Code:
CMD:removecp(playeridparams[])
{
    
DisablePlayerCheckpoint(playerid);
    
SendClientMessage(playeridCOLOR_GREY"You have removed your checkpoints!");

It is compiling fine, but when I try to execute it ingame, it says You have removed your checkpoints! and Unknown Command right after that. Any help?
BluePlayBG is offline   Reply With Quote
Old 13/01/2018, 11:34 AM   #2
aoky
Gangsta
 
aoky's Avatar
 
Join Date: Oct 2016
Location: Czech Republic
Posts: 514
Reputation: 133
Default Re: Help with /removecp

Here, you must return.

PHP Code:
CMD:removecp(playeridparams[]) 

    
DisablePlayerCheckpoint(playerid); 
    
SendClientMessage(playeridCOLOR_GREY"You have removed your checkpoints!"); 
    return 
1;

__________________
owner/developer @ koky's deathmatch

aoky is offline   Reply With Quote
Old 13/01/2018, 11:48 AM   #3
BluePlayBG
Little Clucker
 
Join Date: Apr 2017
Posts: 42
Reputation: 1
Default Re: Help with /removecp

thx lol
BluePlayBG is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.